Share via


XmlWebPart.XmlLink Property

Gets or sets the URL that points to the content for this Web Part.

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

Syntax

<ResourcesAttribute("XmlLinkLiteral", "Advanced", "XmlLink")> _
<WebPartStorageAttribute(Storage.Shared)> _
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)]
public string XmlLink { get; set; }

Property Value

Type: System.String
String   URL that points to the content for this Web Part.

Exceptions

Exception Condition
[ApplicationException]

Invalid XmlLink was provided.

Remarks

The XmlLink property is read/write and is stored with the same value for all users (Storage.Shared).

The URL in this property can point to any Web address; however, it must be prefixed with the protocols "http://" or "https://" to work properly. There is no maximum length for this property. There is no default value. If the XML cannot be retrieved from the specified URL, the contents of the Xml property will be used instead.

See Also

Reference

XmlWebPart Class

XmlWebPart Members

Microsoft.SharePoint.WebPartPages Namespace