Share 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