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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallablePropertyAttribute> _
Public Overridable Property ScriptBlock As String
Get
Set
'Usage
Dim instance As SPUserCustomAction
Dim value As String
value = instance.ScriptBlock
instance.ScriptBlock = value
[ClientCallablePropertyAttribute]
public virtual string ScriptBlock { get; set; }
Property Value
Type: System.String
A string that contains the script.