BinaryKeyIdentifierClause.Matches Method

Definition

Returns a value that indicates whether the key identifier for this instance matches the specified object.

Overloads

Matches(Byte[])

Returns a value that indicates whether the binary data for the current instance matches the specified binary data.

Matches(SecurityKeyIdentifierClause)

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

Matches(Byte[], Int32)

Returns a value that indicates whether the binary data for the current instance is equivalent to the specified binary data at the specified offset.

Matches(Byte[])

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

Returns a value that indicates whether the binary data for the current instance matches the specified binary data.

C#
public bool Matches(byte[] data);

Parameters

data
Byte[]

An array of Byte to compare to.

Returns

true if data is equivalent to the binary data returned by the GetBuffer() method; otherwise, false.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Matches(SecurityKeyIdentifierClause)

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

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

C#
public override bool Matches(System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to compare to.

Returns

true if keyIdentifierClause is of type BinaryKeyIdentifierClause and the binary data returned by the GetBuffer() method is identical for the keyIdentifierClause parameter and the current instance; otherwise, false.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Matches(Byte[], Int32)

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

Returns a value that indicates whether the binary data for the current instance is equivalent to the specified binary data at the specified offset.

C#
public bool Matches(byte[] data, int offset);

Parameters

data
Byte[]

An array of Byte to compare to.

offset
Int32

The index in the array at which the comparison starts.

Returns

true if the binary data in the data parameter starting at the index specified in the offset parameter is equivalent to the binary data returned by the GetBuffer() method (starting at index zero); otherwise, false.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1