.NET Framework Class Library
File.IsFileLockedExclusive Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > File Class > File Methods >

.NET Framework Class Library
File.IsFileLockedExclusive Method

This command checks if a file is locked exclusively by another application (for example by Adobe Acrobat Reader when viewing a PDF file, or by Windows Explorer when previewing a PDF file).

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function IsFileLockedExclusive ( _

 fullPath As String _
As Boolean

C#

public bool IsFileLockedExclusive(

 string fullPath
)

Visual C++

public:

bool IsFileLockedExclusive(
 StringfullPath
)

JavaScript

function isFileLockedExclusive(fullPath);

Parameters

fullPath

Type: System.String
the full file path name

Return Value

true if the file is locked; false otherwise

Remarks

If the file is selected in windows explorer and the preview is enabled (or the file is opened in a viewer), then it results locked;

while if the file is selected in windows explorer but the preview is not enabled (and the file is closed), the it results not locked.

See Also

File Class

File Members

MwPDMApi Namespace

File.IsFileLocked(String)