Share via


ConsoleDataSource.GetHierarchicalView Method

Returns the ConsoleDataSourceView object that corresponds to the specified view path.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function GetHierarchicalView ( _
    viewPath As String _
) As HierarchicalDataSourceView
'Usage
Dim instance As ConsoleDataSource
Dim viewPath As String
Dim returnValue As HierarchicalDataSourceView

returnValue = instance.GetHierarchicalView(viewPath)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public HierarchicalDataSourceView GetHierarchicalView(
    string viewPath
)

Parameters

  • viewPath
    Type: System.String
    A string that contains the view path.

Return Value

Type: System.Web.UI.HierarchicalDataSourceView

Implements

IHierarchicalDataSource.GetHierarchicalView(String)

Remarks

Use the GetHierarchicalView method to return a hierarchical data source view from a hierarchical data source.

See Also

Reference

ConsoleDataSource Class

ConsoleDataSource Members

Microsoft.SharePoint.Publishing.WebControls Namespace