다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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