Share via


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

  • message
    Type: System.String

    A message that describes the error.

See Also

Reference

SPFileLockException Class

SPFileLockException Members

SPFileLockException Overload

Microsoft.SharePoint Namespace