EncryptedKeyIdentifierClause.Matches 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示此实例的密钥标识符是否等效于指定的对象。
重载
| Matches(SecurityKeyIdentifierClause) | 返回一个值,该值指示此实例的密钥标识符是否等效于指定的密钥标识符子句。 | 
| Matches(Byte[], String, String) | 返回一个值,该值指示此实例的密钥标识符是否与指定的加密密钥、加密方法和用户可读名称相同。 | 
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 的类型为 EncryptedKeyIdentifierClause,并且具有与当前实例相同的加密密钥、加密方法和用户可读名称,则为 true;否则为 false。
例外
              keyIdentifierClause 为 null。
另请参阅
适用于
Matches(Byte[], String, String)
返回一个值,该值指示此实例的密钥标识符是否与指定的加密密钥、加密方法和用户可读名称相同。
public:
 bool Matches(cli::array <System::Byte> ^ encryptedKey, System::String ^ encryptionMethod, System::String ^ carriedKeyName);public bool Matches (byte[] encryptedKey, string encryptionMethod, string carriedKeyName);override this.Matches : byte[] * string * string -> boolPublic Function Matches (encryptedKey As Byte(), encryptionMethod As String, carriedKeyName As String) As Boolean参数
- encryptionMethod
- String
用于加密密钥的加密算法。
- carriedKeyName
- String
与加密密钥相关联的用户可读名称。
返回
如果 encryptedKey、encryptionMethod 和 carriedKeyName 参数分别具有 GetEncryptedKey() 方法以及 EncryptionMethod 和 CarriedKeyName 属性所返回的值,则为 true;否则为 false。