Condividi tramite


XmlWebPart.XslLink Property

Gets or sets the URL for the XSLT that is used to transform the content for this Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<RequiresDesignerPermissionAttribute> _
<ResourcesAttribute("XslLinkLiteral", "Advanced", "XslLink")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property XslLink As String
    Get
    Set
'Usage
Dim instance As XmlWebPart
Dim value As String

value = instance.XslLink

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

Property Value

Type: System.String
String   URL that points to XSLT that is used to transform the XML content of this Web Part.

Exceptions

Exception Condition
[ApplicationException]

Invalid Xsl link was provided.

Remarks

The XslLink property is read/write. 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, for example, "http://www.domain.com" or "https://www.domain.com." There is no maximum length for this property. There is no default value. If the XSLT cannot be retrieved from the specified URL, an error is displayed in the Web Part.

See Also

Reference

XmlWebPart Class

XmlWebPart Members

Microsoft.SharePoint.WebPartPages Namespace