SPField.JSLink property
衍生的類別中實作時,會取得或設定外部JavaScript檔案的名稱 (或一組檔案以分隔"|"字元),包含衍生型別的欄位的任何用戶端轉譯邏輯。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Property JSLink As String
Get
Set
'用途
Dim instance As SPField
Dim value As String
value = instance.JSLink
instance.JSLink = value
public virtual string JSLink { get; set; }
Property value
Type: System.String
檔案的目錄的名稱。預設值為a null reference (Nothing in Visual Basic)。
備註
例如,許多的內建的類別中的衍生自這一個, JSLink的預設值為"clienttemplates.js"。