SPFileLockException constructor (String, Int32, SPFileLockExceptionType, SPFile.SPLockType, String, DateTime, String)
Initializes a new instance of the SPFileLockException class with a message to describe the error, an error code, the type of file-lock exception, the type of lock, the name of the user who created the lock, the time that the lock expires, and the lock identifier (ID).
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
errorCode As Integer, _
type As SPFileLockExceptionType, _
lockType As SPFile.SPLockType, _
lockUser As String, _
lockExpires As DateTime, _
lockId As String _
)
'Usage
Dim message As String
Dim errorCode As Integer
Dim type As SPFileLockExceptionType
Dim lockType As SPFile.SPLockType
Dim lockUser As String
Dim lockExpires As DateTime
Dim lockId As String
Dim instance As New SPFileLockException(message, _
errorCode, type, lockType, lockUser, _
lockExpires, lockId)
public SPFileLockException(
string message,
int errorCode,
SPFileLockExceptionType type,
SPFile.SPLockType lockType,
string lockUser,
DateTime lockExpires,
string lockId
)
Parameters
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.
lockType
Type: Microsoft.SharePoint.SPFile.SPLockTypeOne of the enumeration values that describes the type of lock.
lockUser
Type: System.StringThe name of the user.
lockExpires
Type: System.DateTimeThe date and time that the lock expires.
lockId
Type: System.StringA unique ID for the lock.