Compartilhar via


SPClaimProviderOperations.IsClaimsMode Method

Determines whether claims authentication is enabled in the specified context.

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

Syntax

'Declaration
Public Shared Function IsClaimsMode ( _
    context As Uri _
) As Boolean
'Usage
Dim context As Uri
Dim returnValue As Boolean

returnValue = SPClaimProviderOperations.IsClaimsMode(context)
public static bool IsClaimsMode(
    Uri context
)

Parameters

Return Value

Type: System.Boolean
true if claims authentication is enabled in the context; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

context is null .

Remarks

Claims authentication is always disallowed on the central administrative web application.

See Also

Reference

SPClaimProviderOperations Class

SPClaimProviderOperations Members

Microsoft.SharePoint.Administration.Claims Namespace