SPFieldValidationException Constructor (String, Int32)
Initializes a new instance of the SPFieldValidationException class based on the specified message and error code.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub New ( _
message As String, _
errorCode As Integer _
)
'Usage
Dim message As String
Dim errorCode As Integer
Dim instance As New SPFieldValidationException(message, _
errorCode)
public SPFieldValidationException(
string message,
int errorCode
)
Parameters
message
Type: System.StringThe message that explains the reason for the exception.
errorCode
Type: System.Int32The error code.
See Also
Reference
SPFieldValidationException Class
SPFieldValidationException Members