FileIsLocked Method (String, PathFormat) |
[AlphaFS] Determines whether the specified file is in use (locked).
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static bool IsLocked(
string path,
PathFormat pathFormat
)
Public Shared Function IsLocked (
path As String,
pathFormat As PathFormat
) As Boolean
public:
static bool IsLocked(
String^ path,
PathFormat pathFormat
)
static member IsLocked :
path : string *
pathFormat : PathFormat -> bool
Parameters
- path
- Type: SystemString
The file to check. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
BooleanReturns
if the specified file is in use (locked); otherwise,
Exceptions See Also