共用方式為


UserCustomAction.ScriptBlock 屬性

取得或設定值,指定執行自訂動作時要執行的 ECMAScript。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Property ScriptBlock As String
    Get
    Set
'用途
Dim instance As UserCustomAction
Dim value As String

value = instance.ScriptBlock

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

屬性值

類型:System.String
傳回代表執行自訂動作的String執行個體。

備註

如果不是 「 ScriptLink 」,它必須是null 參考 (未執行任何動作 於 Visual Basic 中) 。這項標準定義 ECMAScript 指令碼語言的語言。

請參閱

參照

UserCustomAction 類別

UserCustomAction 成員

Microsoft.SharePoint.Client 命名空間