RsaKeyIdentifierClause.Matches Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(RSA) | Returns a value that indicates whether the key identifier for this instance matches the specified RSA algorithm. | 
Matches(SecurityKeyIdentifierClause)
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 -> boolPublic Overrides Function Matches (keyIdentifierClause As SecurityKeyIdentifierClause) As BooleanParameters
- keyIdentifierClause
- SecurityKeyIdentifierClause
A SecurityKeyIdentifierClause to compare to.
Returns
true if keyIdentifierClause is of type RsaKeyIdentifierClause and the arrays returned by the GetModulus() and GetExponent() methods for the keyIdentifierClause parameter are identical to the current instance; otherwise, false.
Applies to
Matches(RSA)
Returns a value that indicates whether the key identifier for this instance matches the specified RSA algorithm.
public:
 bool Matches(System::Security::Cryptography::RSA ^ rsa);public bool Matches(System.Security.Cryptography.RSA rsa);override this.Matches : System.Security.Cryptography.RSA -> boolPublic Function Matches (rsa As RSA) As BooleanParameters
Returns
true if the Exponent and Modulus fields of the rsa parameter match the values returned by the GetModulus() and GetExponent() methods for the current instance; otherwise, false.