Share via


SPFileCheckOutException constructor (String, Int32, SPFileCheckOutExceptionType, SPFile.SPCheckOutType, String)

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    errorCode As Integer, _
    type As SPFileCheckOutExceptionType, _
    checkoutType As SPFile.SPCheckOutType, _
    checkoutUser As String _
)
'Usage
Dim message As String
Dim errorCode As Integer
Dim type As SPFileCheckOutExceptionType
Dim checkoutType As SPFile.SPCheckOutType
Dim checkoutUser As String

Dim instance As New SPFileCheckOutException(message, _
    errorCode, type, checkoutType, checkoutUser)
public SPFileCheckOutException(
    string message,
    int errorCode,
    SPFileCheckOutExceptionType type,
    SPFile.SPCheckOutType checkoutType,
    string checkoutUser
)

Parameters

  • message
    Type: System.String

    A message that describes the error.

  • errorCode
    Type: System.Int32

    An integer that identifies the exception.

See also

Reference

SPFileCheckOutException class

SPFileCheckOutException members

SPFileCheckOutException overload

Microsoft.SharePoint namespace