SiteMapDataSource.GetHierarchicalView(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a single view on the site map data for the SiteMapProvider object according to the starting node and other properties of the data source.
protected:
override System::Web::UI::HierarchicalDataSourceView ^ GetHierarchicalView(System::String ^ viewPath);
protected override System.Web.UI.HierarchicalDataSourceView GetHierarchicalView (string viewPath);
override this.GetHierarchicalView : string -> System.Web.UI.HierarchicalDataSourceView
Protected Overrides Function GetHierarchicalView (viewPath As String) As HierarchicalDataSourceView
Parameters
- viewPath
- String
The URL of the starting node, specified by the StartingNodeUrl.
Returns
A HierarchicalDataSourceView helper object on the site map data, starting with the node that is identified by the StartingNodeUrl or its child, if the ShowStartingNode is false
.
Exceptions
No SiteMapProvider is configured or available for the site.
The StartFromCurrentNode is true
but the StartingNodeUrl is set.
The StartingNodeUrl is set but the SiteMapDataSource cannot resolve a node for the specified URL.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om