Share via


SPClaimProviderOperations.ClaimTypes method

Gets the claim types for the specified 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 ClaimTypes ( _
    context As Uri, _
    mode As SPClaimProviderOperationOptions, _
    providerNames As String() _
) As String()
'Usage
Dim context As Uri
Dim mode As SPClaimProviderOperationOptions
Dim providerNames As String()
Dim returnValue As String()

returnValue = SPClaimProviderOperations.ClaimTypes(context, _
    mode, providerNames)
public static string[] ClaimTypes(
    Uri context,
    SPClaimProviderOperationOptions mode,
    string[] providerNames
)

Parameters

  • context
    Type: System.Uri

    The context within which the claims providers can be found.

  • providerNames
    Type: []

    The names of the claims providers from which the claim types are retrieved.

Return value

Type: []
The claim types from the claims providers within the context with the specified operation option.

Remarks

The claim type provides context for the claim value, usually expressed as a Uniform Resource Identifier (URI). Examples of claim types include first name, role, and email address.

See also

Reference

SPClaimProviderOperations class

SPClaimProviderOperations members

Microsoft.SharePoint.Administration.Claims namespace