Edit

Share via


LocalIdKeyIdentifierClause.Matches Method

Definition

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

Overloads

Matches(SecurityKeyIdentifierClause)

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

Matches(String, Type)

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

Matches(SecurityKeyIdentifierClause)

Source:
LocalIdKeyIdentifierClause.cs
Source:
LocalIdKeyIdentifierClause.cs
Source:
LocalIdKeyIdentifierClause.cs

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

public:
 override bool Matches(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public override bool Matches (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
override this.Matches : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> bool
Public Overrides Function Matches (keyIdentifierClause As SecurityKeyIdentifierClause) As Boolean

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to compare to.

Returns

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.

Remarks

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.

Applies to

Matches(String, Type)

Source:
LocalIdKeyIdentifierClause.cs
Source:
LocalIdKeyIdentifierClause.cs
Source:
LocalIdKeyIdentifierClause.cs

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

public:
 bool Matches(System::String ^ localId, Type ^ ownerType);
public bool Matches (string localId, Type ownerType);
override this.Matches : string * Type -> bool
Public Function Matches (localId As String, ownerType As Type) As Boolean

Parameters

localId
String

The value of the wsu:Id attribute for an XML element within the current SOAP message.

ownerType
Type

A Type that is the type of security token that is referred to by the localId parameter.

Returns

true if the localId and ownerType parameters match the values of the LocalId and OwnerType properties; otherwise, false.

Remarks

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

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

  • The value of the ownerType parameter is null.

  • The value of the OwnerType property is identical to the ownerType parameter for the current method.

Applies to