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
Syntax
'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<RequiresDesignerPermissionAttribute> _
<ResourcesAttribute("XmlLinkLiteral", "Advanced", "XmlLink")> _
Public Property XmlLink As String
Get
Set
'Usage
Dim instance As XmlWebPart
Dim value As String
value = instance.XmlLink
instance.XmlLink = value
[WebPartStorageAttribute(Storage.Shared)]
[RequiresDesignerPermissionAttribute]
[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.
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.