RsaKeyIdentifierClause.Matches 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示此实例的密钥标识符是否等效于指定的对象。
重载
| Matches(SecurityKeyIdentifierClause) | 返回一个值,该值指示此实例的密钥标识符是否等效于指定的密钥标识符子句。 | 
| Matches(RSA) | 返回一个值,该值指示此实例的密钥标识符是否与指定的 RSA 算法相匹配。 | 
Matches(SecurityKeyIdentifierClause)
返回一个值,该值指示此实例的密钥标识符是否等效于指定的密钥标识符子句。
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 Boolean参数
- keyIdentifierClause
- SecurityKeyIdentifierClause
要进行比较的 SecurityKeyIdentifierClause。
返回
如果 keyIdentifierClause 为 RsaKeyIdentifierClause 类型并且 GetModulus() 和 GetExponent() 方法对于 keyIdentifierClause 参数返回的数组与当前实例相同,则为 true;否则为 false。
适用于
Matches(RSA)
返回一个值,该值指示此实例的密钥标识符是否与指定的 RSA 算法相匹配。
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 Boolean参数
返回
如果 rsa 参数的 Exponent 和 Modulus 字段与当前实例的 GetModulus() 和 GetExponent() 方法所返回的值相匹配,则为 true;否则为 false。