XmlWebPart.XmlLink 属性

获取或设置指向此 Web 部件的内容的 URL。

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

语法

声明
<ResourcesAttribute("XmlLinkLiteral", "Advanced", "XmlLink")> _
<WebPartStorageAttribute(Storage.Shared)> _
<RequiresDesignerPermissionAttribute> _
Public Property XmlLink As String
    Get
    Set
用法
Dim instance As XmlWebPart
Dim value As String

value = instance.XmlLink

instance.XmlLink = value
[ResourcesAttribute("XmlLinkLiteral", "Advanced", "XmlLink")]
[WebPartStorageAttribute(Storage.Shared)]
[RequiresDesignerPermissionAttribute]
public string XmlLink { get; set; }

属性值

类型:System.String
String指向此 Web 部件的内容的 URL。

异常

异常 条件
[ApplicationException]

提供无效XmlLink 。

备注

XmlLink属性是可读写,并且具有相同的值 (Storage.Shared) 的所有用户存储。

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

另请参阅

引用

XmlWebPart 类

XmlWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间