XmlWebPart.XslLink property
取得或設定用來轉換此 Web 組件的內容之 XSLT 的 URL。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<WebPartStorageAttribute(Storage.Shared)> _
<RequiresDesignerPermissionAttribute> _
<ResourcesAttribute("XslLinkLiteral", "Advanced", "XslLink")> _
Public Property XslLink As String
Get
Set
'用途
Dim instance As XmlWebPart
Dim value As String
value = instance.XslLink
instance.XslLink = value
[WebPartStorageAttribute(Storage.Shared)]
[RequiresDesignerPermissionAttribute]
[ResourcesAttribute("XslLinkLiteral", "Advanced", "XslLink")]
public string XslLink { get; set; }
Property value
Type: System.String
String用來轉換此 Web 組件的 XML 內容的 XSLT 所指向的 URL。
Exceptions
Exception | Condition |
---|---|
[ApplicationException] | 提供不正確的 Xsl 連結。 |
備註
XslLink屬性是讀取/寫入。這個屬性中的 URL 可指向任何網址。不過它必須在前端加上通訊協定"http://"或"https://"運作正常,比方說,"http://www.domain.com"或"https://www.domain.com"。這個屬性沒有最大長度。沒有預設值。如果無法從指定的 URL 中擷取 XSLT,錯誤會顯示在 [網頁組件中。