Share via


SPClaimProviderOperations.Search method (Uri, SPClaimProviderOperationOptions, String[], String[], String, Int32)

Performs a search for a maximum number of entity types that match the specified pattern for the claims providers in the context with an 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, _
    providerNames As String(), _
    entityTypes As String(), _
    searchPattern As String, _
    maxCount As Integer _
) As SPProviderHierarchyTree()
'Usage
Dim context As Uri
Dim mode As SPClaimProviderOperationOptions
Dim providerNames As String()
Dim entityTypes As String()
Dim searchPattern As String
Dim maxCount As Integer
Dim returnValue As SPProviderHierarchyTree()

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

Parameters

  • context
    Type: System.Uri

    The context within which the claims providers are found.

  • providerNames
    Type: []

    The names of the claims providers that are searched.

  • 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 or searchPattern is null .

ArgumentOutOfRangeException

maxCount is less than 0.

Remarks

If entityTypes is null , all entity types are returned.

See also

Reference

SPClaimProviderOperations class

SPClaimProviderOperations members

Search overload

Microsoft.SharePoint.Administration.Claims namespace