共用方式為


SPClaimHierarchyProvider.GetHierarchy Method

Returns the overall hierarchy up to the number of levels specified in the numberOfLevels parameter.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public MustOverride Function GetHierarchy ( _
    context As Uri, _
    hierarchyNodeID As String, _
    numberOfLevels As Integer _
) As SPProviderHierarchyTree
'Usage
Dim instance As SPClaimHierarchyProvider
Dim context As Uri
Dim hierarchyNodeID As String
Dim numberOfLevels As Integer
Dim returnValue As SPProviderHierarchyTree

returnValue = instance.GetHierarchy(context, _
    hierarchyNodeID, numberOfLevels)
public abstract SPProviderHierarchyTree GetHierarchy(
    Uri context,
    string hierarchyNodeID,
    int numberOfLevels
)

Parameters

  • context
    Type: System.Uri

    The context, as a URI. This must be a properly formatted URI.

  • numberOfLevels
    Type: System.Int32

    The maximum number of levels in the hierarchy to retrieve.

Return Value

Type: Microsoft.SharePoint.WebControls.SPProviderHierarchyTree
An object representing the hierarchy provider tree.

See Also

Reference

SPClaimHierarchyProvider Class

SPClaimHierarchyProvider Members

Microsoft.SharePoint.Administration.Claims Namespace