共用方式為


SPClaimHierarchyProvider.GetHierarchy method

會傳回最多個numberOfLevels參數中指定的層級數目的整體階層。

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

Syntax

'宣告
Public MustOverride Function GetHierarchy ( _
    context As Uri, _
    hierarchyNodeID As String, _
    numberOfLevels As Integer _
) As SPProviderHierarchyTree
'用途
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
)

參數

  • context
    Type: System.Uri

    為 URI 內容。這必須是格式正確的 URI。

  • numberOfLevels
    Type: System.Int32

    若要擷取的階層中的層級數目上限。

傳回值

Type: Microsoft.SharePoint.WebControls.SPProviderHierarchyTree
代表階層提供者樹狀目錄的物件。

請參閱

參照

SPClaimHierarchyProvider class

SPClaimHierarchyProvider members

Microsoft.SharePoint.Administration.Claims namespace