Compartilhar via


SPClaimProviderOperations.Search Method (Uri, SPClaimProviderOperationOptions, SPProviderSearchArguments[], String , String)

Performs a search for the entity types that match the specified pattern for the claims providers in the context using the search arguments and operation option.

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

Syntax

'Declaration
Public Shared Function Search ( _
    context As Uri, _
    mode As SPClaimProviderOperationOptions, _
    providerSearchArguments As SPProviderSearchArguments(), _
    entityTypes As String(), _
    searchPattern As String _
) As SPProviderHierarchyTree()
'Usage
Dim context As Uri
Dim mode As SPClaimProviderOperationOptions
Dim providerSearchArguments As SPProviderSearchArguments()
Dim entityTypes As String()
Dim searchPattern As String
Dim returnValue As SPProviderHierarchyTree()

returnValue = SPClaimProviderOperations.Search(context, _
    mode, providerSearchArguments, entityTypes, _
    searchPattern)
public static SPProviderHierarchyTree[] Search(
    Uri context,
    SPClaimProviderOperationOptions mode,
    SPProviderSearchArguments[] providerSearchArguments,
    string[] entityTypes,
    string searchPattern
)

Parameters

  • context
    Type: System.Uri

    The context within which the claims providers are found.

  • providerSearchArguments
    Type: []

    The arguments for searching the hierarchy trees.

  • entityTypes
    Type: []

    The entity types that are returned on the hierarchy trees.

Return Value

Type: []
The array of claims provider hierarchy trees.

Exceptions

Exception Condition
ArgumentNullException

context, providerSearchArguments, or searchPattern is null .

Remarks

If entityTypes is null , all entity types are returned.

See Also

Reference

SPClaimProviderOperations Class

SPClaimProviderOperations Members

Search Overload

Microsoft.SharePoint.Administration.Claims Namespace