SPClaimEntityTypes.Equals Method
Performs a comparison between two entity type objects.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function Equals ( _
entityTypeOne As String, _
entityTypeTwo As String _
) As Boolean
'Usage
Dim entityTypeOne As String
Dim entityTypeTwo As String
Dim returnValue As Boolean
returnValue = SPClaimEntityTypes.Equals(entityTypeOne, _
entityTypeTwo)
public static bool Equals(
string entityTypeOne,
string entityTypeTwo
)
Parameters
entityTypeOne
Type: System.StringFirst entity type object to compare.
entityTypeTwo
Type: System.StringSecond entity type object to compare.
Return Value
Type: System.Boolean
Returns Boolean. true if both entity types are considered equivalent; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when any parameter is a null reference (Nothing in Visual Basic). |