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)

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.String

    The message that explains the reason for the exception.

See also

Reference

SPFieldValidationException class

SPFieldValidationException members

SPFieldValidationException overload

Microsoft.SharePoint namespace