Share via


SPUserCustomAction.ScriptBlock property

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

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

Syntax

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

value = instance.ScriptBlock

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

Property value

Type: System.String
A string that contains the script.

See also

Reference

SPUserCustomAction class

SPUserCustomAction members

Microsoft.SharePoint namespace

ScriptSrc