Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringThe first of the two values to compare.
claimValueTwo
Type: System.StringThe 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). |