SPClaimProvider.GetHierarchy method
在特定hierarchyNodeID取得根目錄**[T:HYPERLINK"ms-help://MS.SPF14SDK.en/SPF14MrefControls/html/a4bf54d0-29e5-e5c2-231e-b1b9f4728a7f.htm"Microsoft.SharePoint.WebControls.SPProviderHierarchyTree]**階層。
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetHierarchy ( _
context As Uri, _
entityTypes As String(), _
hierarchyNodeID As String, _
numberOfLevels As Integer _
) As SPProviderHierarchyTree
'用途
Dim instance As SPClaimProvider
Dim context As Uri
Dim entityTypes As String()
Dim hierarchyNodeID As String
Dim numberOfLevels As Integer
Dim returnValue As SPProviderHierarchyTree
returnValue = instance.GetHierarchy(context, _
entityTypes, hierarchyNodeID, numberOfLevels)
public SPProviderHierarchyTree GetHierarchy(
Uri context,
string[] entityTypes,
string hierarchyNodeID,
int numberOfLevels
)
參數
context
Type: System.Uri為 URI 內容。這必須是格式正確的 URI。
entityTypes
Type: []會傳回SPProviderHierarchyTree樹狀目錄**[P:HYPERLINK"mk:@MSITStore:D:\\\\aSDK\\\\SP2010SDK.chm::/html/a4bf54d0-29e5-e5c2-231e-b1b9f4728a7f.htm"Microsoft.SharePoint.WebControls.PickerEntity.EntityType]**實體類型。
hierarchyNodeID
Type: System.String在設定**[P:HYPERLINK"ms-help://MS.SPF14SDK.en/SPF14MrefControls/html/a4bf54d0-29e5-e5c2-231e-b1b9f4728a7f.htm"Microsoft.SharePoint.WebControls.SPProviderHierarchyNode.HierarchyNodeID]**根結果之節點。如果會傳回a null reference (Nothing in Visual Basic)然後根。
numberOfLevels
Type: System.Int32若要傳回的階層層級數目。
傳回值
Type: Microsoft.SharePoint.WebControls.SPProviderHierarchyTree
numberOfLevels參數中指定的最大高度的宣告提供者SPProviderHierarchyTree樹狀目錄。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | context時a null reference (Nothing in Visual Basic)擲回。 |
ArgumentOutOfRangeException | 擲回numberOfLevels時小於 1。 |
NotImplementedException | SupportsHierachy()時false擲回。 |