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