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)

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