Share via


SPClaimValueTypes.Equals method

Performs a comparison between two claim value type objects.

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

Syntax

'Declaration
Public Shared Function Equals ( _
    claimValueTypeOne As String, _
    claimValueTypeTwo As String _
) As Boolean
'Usage
Dim claimValueTypeOne As String
Dim claimValueTypeTwo As String
Dim returnValue As Boolean

returnValue = SPClaimValueTypes.Equals(claimValueTypeOne, _
    claimValueTypeTwo)
public static bool Equals(
    string claimValueTypeOne,
    string claimValueTypeTwo
)

Parameters

  • claimValueTypeOne
    Type: System.String

    A string that represents the first claim value type object to compare.

  • claimValueTypeTwo
    Type: System.String

    A string that represents the second claim value type object to compare.

Return value

Type: System.Boolean
true if both claim value types are considered equivalent; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The claimValueTypeOne parameter is a null reference (Nothing in Visual Basic). The claimValueTypeTwo parameter is a null reference (Nothing in Visual Basic).

See also

Reference

SPClaimValueTypes class

SPClaimValueTypes members

Microsoft.SharePoint.Administration.Claims namespace