Partilhar via


SPUserCustomAction.Validate Method

Performs validation of the custom action prior to saving it.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)> _
Protected Overridable Function Validate As String
'Usage
Dim returnValue As String

returnValue = Me.Validate()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)]
protected virtual string Validate()

Return Value

Type: System.String
A string that contains the XML representation of the custom action.

Exceptions

Exception Condition
ArgumentException

The values of the Id or Scope properties are invalid.

SPException

The value of the Location property is null or empty.

See Also

Reference

SPUserCustomAction Class

SPUserCustomAction Members

Microsoft.SharePoint Namespace