Share via


SPUserCustomAction.Validate method

Performs validation of the custom action prior to saving it.

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

Syntax

'Declaration
Protected Overridable Function Validate As String
'Usage
Dim returnValue As String

returnValue = Me.Validate()
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