DataViewWebPart.XslLink 属性

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

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

语法

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

属性值

类型:System.String
String包含指向此 Web 部件中呈现的内容的 XSLT 的 URL。

备注

XslLink属性是可读写。此属性中的 URL 可以指向任何 Web 地址 ;但是它必须使用的协议"http://"或"https://"可以正常运行作为前缀。例如,"http://www.domain.com"或者"https://www.domain.com"。为此属性没有最大长度。没有默认值。如果无法从指定的 URL 中检索 XSLT,将使用Xsl属性的内容。

另请参阅

引用

DataViewWebPart 类

DataViewWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间