SPFileLockException Constructor (SPFile, String, Int32, SPFileLockExceptionType)
Initializes a new instance of the SPFileLockException class with the file where the error occurred, a message to describe the error, an error code, and the type of file-lock exception.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
Syntax
'Declaration
Public Sub New ( _
file As SPFile, _
message As String, _
errorCode As Integer, _
type As SPFileLockExceptionType _
)
'Usage
Dim file As SPFile
Dim message As String
Dim errorCode As Integer
Dim type As SPFileLockExceptionType
Dim instance As New SPFileLockException(file, message, _
errorCode, type)
public SPFileLockException(
SPFile file,
string message,
int errorCode,
SPFileLockExceptionType type
)
Parameters
file
Type: Microsoft.SharePoint.SPFileThe file where the error occurred.
message
Type: System.StringA message that describes the error.
errorCode
Type: System.Int32The HRESULT from an error in underlying unmanaged code.
type
Type: Microsoft.SharePoint.SPFileLockExceptionTypeOne of the enumeration values that describes the type of file-lock exception.