Share via


SPUserCodeExecutionContext.SolutionValidationErrorMessage property

Gets or sets an error message that is returned by the last user-code validator.

Namespace:  Microsoft.SharePoint.UserCode
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property SolutionValidationErrorMessage As String
    Get
    Set
'Usage
Dim instance As SPUserCodeExecutionContext
Dim value As String

value = instance.SolutionValidationErrorMessage

instance.SolutionValidationErrorMessage = value
public string SolutionValidationErrorMessage { get; set; }

Property value

Type: System.String
A string that provides an error message or, if the last user-code validator was successful, a value of a null reference (Nothing in Visual Basic).

Remarks

In general, the caller of this property should set it to the error message from the last user-code validator for this solution.

If the last user-code validator was successful, this value must be a null reference (Nothing in Visual Basic).

Full Trust permissions are required to set this property.

See also

Reference

SPUserCodeExecutionContext class

SPUserCodeExecutionContext members

Microsoft.SharePoint.UserCode namespace