Checks if a file is locked or not

Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
bool IsFileLocked(
	IFileInfo file,
	out string lockReasonKey
)
Visual Basic
Function IsFileLocked ( 
	file As IFileInfo,
	<OutAttribute> ByRef lockReasonKey As String
) As Boolean

Parameters

file
Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to be checked
lockReasonKey
Type: System..::..String%
The friendly reason why the file is locked

Return Value

True if the file is locked, false in otherwise

See Also