UserCustomAction.ScriptBlock property

Gets or sets the value that specifies the ECMAScript to be executed when the custom action is performed.

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

Syntax

'Declaration
Public Property ScriptBlock As String
    Get
    Set
'Usage
Dim instance As UserCustomAction
Dim value As String

value = instance.ScriptBlock

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

Property value

Type: System.String
Returns a String instance representing the custom action performed.

Remarks

It must be a null reference (Nothing in Visual Basic) if Location is not “ScriptLink”. This Standard defines the ECMAScript scripting language.

See also

Reference

UserCustomAction class

UserCustomAction members

Microsoft.SharePoint.Client namespace