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
file
Type: Microsoft.SharePoint.SPFileThe file on which a checkout operation was attempted.
message
Type: System.StringA message that describes the error.
errorCode
Type: System.Int32The error code that identifies the exception.
type
Type: Microsoft.SharePoint.SPFileCheckOutExceptionTypeThe type of checkout exception.
See also
Reference
SPFileCheckOutException members