共用方式為


XmlWebPart.XmlLink property

取得或設定此 Web 組件指向內容的 URL。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<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; }

Property value

Type: System.String
String指向此 Web 組件的內容的 URL。

Exceptions

Exception Condition
[ApplicationException]

提供無效的XmlLink 。

備註

XmlLink屬性是讀取/寫入,而且會儲存以相同的值,為所有使用者 (Storage.Shared)。

這個屬性中的 URL 可指向任何網址。不過,它必須在前端加上通訊協定"http://"或"https://"才能正常運作。這個屬性沒有最大長度。沒有預設值。如果無法從指定的 URL 中擷取 XML,將改為使用Xml屬性的內容。

請參閱

參照

XmlWebPart class

XmlWebPart members

Microsoft.SharePoint.WebPartPages namespace