SPFileLockException.Type property
Gets a value that describes why the exception has occurred.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property Type As SPFileLockExceptionType
Get
'Usage
Dim instance As SPFileLockException
Dim value As SPFileLockExceptionType
value = instance.Type
public SPFileLockExceptionType Type { get; }
Property value
Type: Microsoft.SharePoint.SPFileLockExceptionType
One of the enumeration values that describe the reasons why a lock caused a file operation to fail.
Remarks
You can access this property to find out why a lock caused an error to occur during an operation on a file. An error can occur because there is a lock on the file, because there is no lock on the file, or because invalid parameters are used to create or update a lock.
The values of the SPFileLockExceptionType enumeration represent the four reasons why a lock can cause a file operation to fail: NoLockExists, ExclusiveLockExists, BadLockArguments, or SharedLockExists.