Compartilhar via


SPUserCodeValidationFailedException Constructor

Initializes a new instance of the SPUserCodeValidationFailedException class with the specified message and URL.

Namespace:  Microsoft.SharePoint.UserCode
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub New ( _
    validationErrorMessage As String, _
    validationErrorUrl As String _
)
'Usage
Dim validationErrorMessage As String
Dim validationErrorUrl As String

Dim instance As New SPUserCodeValidationFailedException(validationErrorMessage, _
    validationErrorUrl)
public SPUserCodeValidationFailedException(
    string validationErrorMessage,
    string validationErrorUrl
)

Parameters

  • validationErrorMessage
    Type: System.String

    The validation error message.

  • validationErrorUrl
    Type: System.String

    The URL for the page that contains the validation error message.

See Also

Reference

SPUserCodeValidationFailedException Class

SPUserCodeValidationFailedException Members

Microsoft.SharePoint.UserCode Namespace