Compartilhar via


SPClaimTypes.Equals Method

Compares two ClaimType objects.

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

Syntax

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

returnValue = SPClaimTypes.Equals(claimTypeOne, _
    claimTypeTwo)
public static bool Equals(
    string claimTypeOne,
    string claimTypeTwo
)

Parameters

  • claimTypeOne
    Type: System.String

    A string that represents the first claim type to compare.

  • claimTypeTwo
    Type: System.String

    A string that represents the second claim type to compare.

Return Value

Type: System.Boolean
true if claimTypeOne and claimTypeTwo are equal; otherwise, false. The default is false.

Exceptions

Exception Condition
ArgumentNullException

claimTypeOne or claimTypeTwo parameter is null .

See Also

Reference

SPClaimTypes Class

SPClaimTypes Members

Microsoft.SharePoint.Administration.Claims Namespace