DataViewWebPart.XslLink property
取得或設定用來轉換此 Web 組件的內容之 XSLT 的 URL。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ResourcesAttribute("DataViewWebPartXslLinkLiteral", "Miscellaneous", _
"DataViewWebPartXslLinkDescription")> _
<WebPartStorageAttribute(Storage.Shared)> _
<HtmlDesignerAttribute("", HtmlEditorBuilderType := "file")> _
Public Property XslLink As String
Get
Set
'用途
Dim instance As DataViewWebPart
Dim value As String
value = instance.XslLink
instance.XslLink = value
[ResourcesAttribute("DataViewWebPartXslLinkLiteral", "Miscellaneous",
"DataViewWebPartXslLinkDescription")]
[WebPartStorageAttribute(Storage.Shared)]
[HtmlDesignerAttribute("", HtmlEditorBuilderType = "file")]
public string XslLink { get; set; }
Property value
Type: System.String
String包含指向此 Web 組件呈現內容的 XSLT 的 URL。
備註
XslLink屬性是讀取/寫入。這個屬性中的 URL 可指向任何網址。不過它必須在前端加上通訊協定"http://"或"https://"才能正常運作。例如,"http://www.domain.com"或者"https://www.domain.com"。這個屬性沒有最大長度。沒有預設值。如果無法從指定的 URL 中擷取 XSLT,將改為使用Xsl屬性的內容。