Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2010 product release

Other versions are also available for the following:
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)
Visual Basic (Declaration)
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<ManagedLinkAttribute(Fixup := True)> _
<WebBrowsableAttribute(False)> _
Public Property AnchorLocation As String
    Get
    Set
Visual Basic (Usage)
Dim instance As TableOfContentsWebPart
Dim value As String

value = instance.AnchorLocation

instance.AnchorLocation = value
C#
[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.

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).

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker