แก้ไข

แชร์ผ่าน


SiteMapDataSource.GetHierarchicalView(String) Method

Definition

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 StartingNodeUrl is set but the SiteMapDataSource cannot resolve a node for the specified URL.

Applies to

See also