SPUserCustomAction.ScriptBlock property
取得或設定值,指定要執行時執行自訂動作JavaScript 。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Property ScriptBlock As String
Get
Set
'用途
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
內含指令碼的字串。