共用方式為


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.String

    First entity type object to compare.

  • entityTypeTwo
    Type: System.String

    Second 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).

See Also

Reference

SPClaimEntityTypes Class

SPClaimEntityTypes Members

Microsoft.SharePoint.Administration.Claims Namespace