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)
Available in Sandboxed Solutions: No


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

value = instance.XmlLink

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

Property Value

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


Exception Condition

Invalid XmlLink was provided.


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


XmlWebPart Class

XmlWebPart Members

Microsoft.SharePoint.WebPartPages Namespace