Share via


SPClaimProviderManager.IsClaimsUserAndMatchesIdentityClaim method

Static method to check the current thread's principal is for a claims user (and thus that claims is active) and that it's identity claim matches identityClaim.

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

Syntax

'Declaration
Public Shared Function IsClaimsUserAndMatchesIdentityClaim ( _
    identityClaim As SPClaim _
) As Boolean
'Usage
Dim identityClaim As SPClaim
Dim returnValue As Boolean

returnValue = SPClaimProviderManager.IsClaimsUserAndMatchesIdentityClaim(identityClaim)
public static bool IsClaimsUserAndMatchesIdentityClaim(
    SPClaim identityClaim
)

Parameters

Return value

Type: System.Boolean

See also

Reference

SPClaimProviderManager class

SPClaimProviderManager members

Microsoft.SharePoint.Administration.Claims namespace