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
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Property ScriptBlock As String
Get
Set
'Usage
Dim instance As UserCustomAction
Dim value As String
value = instance.ScriptBlock
instance.ScriptBlock = value
[RemoteAttribute]
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.