Share via


SPClaim.EqualClaimValues method

Determines whether two claim values (see SPClaimValueTypes) have the same value by using appropriate comparison.

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

Syntax

'Declaration
Public Shared Function EqualClaimValues ( _
    claimValueOne As String, _
    claimValueTwo As String _
) As Boolean
'Usage
Dim claimValueOne As String
Dim claimValueTwo As String
Dim returnValue As Boolean

returnValue = SPClaim.EqualClaimValues(claimValueOne, _
    claimValueTwo)
public static bool EqualClaimValues(
    string claimValueOne,
    string claimValueTwo
)

Parameters

  • claimValueOne
    Type: System.String

    The first of the two values to compare.

  • claimValueTwo
    Type: System.String

    The second of the two values to compare.

Return value

Type: System.Boolean
true if the two claim value types are equal; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

Thrown when any parameter is a null reference (Nothing in Visual Basic).

See also

Reference

SPClaim class

SPClaim members

Microsoft.SharePoint.Administration.Claims namespace