XmlWebPart.XslLink 属性

获取或设置用于将内容转换为此 Web 部件的 XSLT URL。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<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; }

属性值

类型:System.String
String指向用于转换此 Web 部件的 XML 内容的 XSLT 的 URL。

异常

异常 条件
[ApplicationException]

提供无效的 Xsl 链接。

备注

XslLink属性是可读写。此属性中的 URL 可以指向任何 Web 地址 ;但是,它必须附上前缀与协议"http://"或"https://"正常工作,例如,"http://www.domain.com"或"https://www.domain.com。"为此属性没有最大长度。没有默认值。如果无法从指定的 URL 中检索 XSLT,是在 Web 部件中显示错误。

另请参阅

引用

XmlWebPart 类

XmlWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间