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.StringA message that describes the error.
errorCode
Type: System.Int32An integer that identifies the exception.
type
Type: Microsoft.SharePoint.SPFileCheckOutExceptionTypeOne of the enumeration values that describes the type of checkout exception.
checkoutType
Type: Microsoft.SharePoint.SPFile.SPCheckOutTypeOne of the enumeration values that describes the type of checkout.
checkoutUser
Type: System.StringThe name of the user.
See also
Reference
SPFileCheckOutException members