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