LocalIdKeyIdentifierClause.Matches Method (SecurityKeyIdentifierClause)

 

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified key identifier clause.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override bool Matches(
	SecurityKeyIdentifierClause keyIdentifierClause
)

Return Value

Type: System.Boolean

true if keyIdentifierClause is of type LocalIdKeyIdentifierClause and the values of the LocalId and OwnerType properties match the current instance; otherwise, false. See the remarks for more details.

A match on the OwnerType property occurs when one of the following happens:

  • The value of the OwnerType property for the instance represented by the keyIdentifierClause parameter is null.

  • The value of the OwnerType property for the current instance is null.

  • The OwnerType property for the two instances are identical.

.NET Framework
Available since 3.0
Return to top
Show: