다음을 통해 공유


TableOfContentsWebPart.AnchorLocation Property

Gets or sets the server-relative URL of the location from which to start gathering data.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<ManagedLinkAttribute(Fixup := True)> _
<WebBrowsableAttribute(False)> _
Public Property AnchorLocation As String
    Get
    Set
'Usage
Dim instance As TableOfContentsWebPart
Dim value As String

value = instance.AnchorLocation

instance.AnchorLocation = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[ManagedLinkAttribute(Fixup = true)]
[WebBrowsableAttribute(false)]
public string AnchorLocation { get; set; }

Property Value

Type: System.String
The default value is an empty string.

Remarks

The Web Part shows the contents of the Web site, starting from the location indicated by this property. The AnchorLocation will automatically be corrected if the target of the AnchorLocation moves within the SharePoint Foundation system. An empty string for AnchorLocation indicates that the Web Part should be anchored at the context Web site (the Web site containing the page that includes the Web Part).

See Also

Reference

TableOfContentsWebPart Class

TableOfContentsWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace