共用方式為


SPClaimProvider.Search method

執行**[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 Search ( _
    context As Uri, _
    entityTypes As String(), _
    searchPattern As String, _
    hierarchyNodeID As String, _
    maxCount As Integer _
) As SPProviderHierarchyTree
'用途
Dim instance As SPClaimProvider
Dim context As Uri
Dim entityTypes As String()
Dim searchPattern As String
Dim hierarchyNodeID As String
Dim maxCount As Integer
Dim returnValue As SPProviderHierarchyTree

returnValue = instance.Search(context, _
    entityTypes, searchPattern, hierarchyNodeID, _
    maxCount)
public SPProviderHierarchyTree Search(
    Uri context,
    string[] entityTypes,
    string searchPattern,
    string hierarchyNodeID,
    int maxCount
)

參數

  • 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]**類型。若a null reference (Nothing in Visual Basic),所有的類型並傳回。

  • 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)再搜尋一開始的根目錄。

傳回值

Type: Microsoft.SharePoint.WebControls.SPProviderHierarchyTree
SPProviderHierarchyTree 樹狀目錄中的根節點,或是從hierarchyNodeID所有樹狀目錄節點及其中含有符合PickerEntity物件的節點。

Exceptions

Exception Condition
ArgumentNullException

context時a null reference (Nothing in Visual Basic)擲回。

ArgumentOutOfRangeException

maxCount小於 0 時,便會擲回。

NotImplementedException

SupportsSearch時false擲回。

請參閱

參照

SPClaimProvider class

SPClaimProvider members

Microsoft.SharePoint.Administration.Claims namespace