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.UriThe context within which the claims providers are found.
mode
Type: Microsoft.SharePoint.Administration.Claims.SPClaimProviderOperationOptionsThe operation option to get the claims providers.
providerSearchArguments
Type: []The arguments for searching the hierarchy trees.
entityTypes
Type: []The entity types that are returned on the hierarchy trees.
searchPattern
Type: System.StringThe data to search for.
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