次の方法で共有


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.String

    A message that describes the error.

  • lockExpires
    Type: System.DateTime

    The date and time that the lock expires.

See also

Reference

SPFileLockException class

SPFileLockException members

SPFileLockException overload

Microsoft.SharePoint namespace