共用方式為


SPFileCheckOutException Constructor (SPFile, String, Int32, SPFileCheckOutExceptionType)

Initializes a new instance of the SPFileCheckOutException class with the file, error message, error code, and exception type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub New ( _
    file As SPFile, _
    message As String, _
    errorCode As Integer, _
    type As SPFileCheckOutExceptionType _
)
'Usage
Dim file As SPFile
Dim message As String
Dim errorCode As Integer
Dim type As SPFileCheckOutExceptionType

Dim instance As New SPFileCheckOutException(file, message, _
    errorCode, type)
public SPFileCheckOutException(
    SPFile file,
    string message,
    int errorCode,
    SPFileCheckOutExceptionType type
)

Parameters

  • message
    Type: System.String

    A message that describes the error.

  • errorCode
    Type: System.Int32

    The error code that identifies the exception.

See Also

Reference

SPFileCheckOutException Class

SPFileCheckOutException Members

SPFileCheckOutException Overload

Microsoft.SharePoint Namespace