TaxonomyNavigationContext.NavigationTerm property
Gets the context navigation term for the current HTTP request.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public ReadOnly Property NavigationTerm As NavigationTerm
Get
'Usage
Dim instance As TaxonomyNavigationContext
Dim value As NavigationTerm
value = instance.NavigationTerm
public NavigationTerm NavigationTerm { get; }
Property value
Type: Microsoft.SharePoint.Publishing.Navigation.NavigationTerm
Remarks
Typically, this property is assigned automatically when the managed navigation feature rewrites a friendly URL or a catalog-friendly URL. If the current request URL is not a friendly URL, the context T:Microsoft.SharePoint.Publishing.Navigation.NavigationTerm object can be specified via the URL query parameters TermStoreId, TermSetId, and TermId. Server-side code can also specify the context NavigationTerm by calling the SetNavigationTerm(NavigationTerm, []) method.
Note
Although the context NavigationTerm object is typically a friendly URL, it is valid for it to be a SimpleLink instead. Use the FriendlyUrlTerm property to ignore such terms.
Once a context NavigationTerm is assigned, it cannot be changed for the duration of the HTTP request, which ensures that the page rendering is deterministic. Because of this behavior, care should be taken to ensure that controls are initialized in a predictable order.
See also
Reference
TaxonomyNavigationContext class