SPClaimProvider.Search - Méthode

Effectue une recherche de la hiérarchie [T:HYPERLINK"ms-help://MS.SPF14SDK.en/SPF14MrefControls/html/a4bf54d0-29e5-e5c2-231e-b1b9f4728a7f.htm"Microsoft.SharePoint.WebControls.SPProviderHierarchyTree] .

Espace de noms :  Microsoft.SharePoint.Administration.Claims
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Function Search ( _
    context As Uri, _
    entityTypes As String(), _
    searchPattern As String, _
    hierarchyNodeID As String, _
    maxCount As Integer _
) As SPProviderHierarchyTree
'Utilisation
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
)

Paramètres

  • context
    Type : System.Uri

    Le contexte, en tant qu'URI. Ce doit être un URI correctement mis en forme.

  • entityTypes
    Type : []

    Les types [P:HYPERLINK"mk:@MSITStore:D:\\\\aSDK\\\\SP2010SDK.chm::/html/a4bf54d0-29e5-e5c2-231e-b1b9f4728a7f.htm"Microsoft.SharePoint.WebControls.PickerEntity.EntityType] pour retourner sur l'arborescence SPProviderHierarchyTree . Si une référence Null (Rien dans Visual Basic), tous les types sont retournés.

  • searchPattern
    Type : System.String

    Les données à rechercher.

  • hierarchyNodeID
    Type : System.String

    Le nœud à rechercher à partir de. Le [P:HYPERLINK"ms-help://MS.SPF14SDK.en/SPF14MrefControls/html/a4bf54d0-29e5-e5c2-231e-b1b9f4728a7f.htm"Microsoft.SharePoint.WebControls.SPProviderHierarchyNode.HierarchyNodeID] identifie le nœud à rechercher à partir de. Si une référence Null (Rien dans Visual Basic) puis la recherche commence à la racine.

  • maxCount
    Type : System.Int32

    Nombre maximal de résultats.

Valeur renvoyée

Type : Microsoft.SharePoint.WebControls.SPProviderHierarchyTree
Une arborescence de SPProviderHierarchyTree à partir du nœud racine ou à partir de hierarchyNodeID à tous les nœuds d'arbre et nœuds contenant des PickerEntity des objets correspondants.

Exceptions

Exception Condition
ArgumentNullException

Levée lorsque context est une référence Null (Rien dans Visual Basic).

ArgumentOutOfRangeException

Levée lorsque maxCount est inférieur à 0.

NotImplementedException

Levée lorsque SupportsSearch est false.

Voir aussi

Référence

SPClaimProvider classe

SPClaimProvider - Membres

Microsoft.SharePoint.Administration.Claims - Espace de noms