Saml2AssertionKeyIdentifierClause.Matches 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷兩個關鍵識別子句是否等價。
多載
| 名稱 | Description |
|---|---|
| Matches(SecurityKeyIdentifierClause) |
回傳一個值,指示此實例的金鑰識別碼是否等同於指定的金鑰識別子句。 |
| Matches(String, SecurityKeyIdentifierClause) |
回傳一個值,指示斷言的金鑰識別碼是否等同於指定的金鑰識別子句。 |
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 -> bool
Public Overrides Function Matches (keyIdentifierClause As SecurityKeyIdentifierClause) As Boolean
參數
- keyIdentifierClause
- SecurityKeyIdentifierClause
SecurityKeyIdentifierClause一個比較的例子。
傳回
true若 keyIdentifierClause 與當前實例相同;否則 。 false
適用於
Matches(String, SecurityKeyIdentifierClause)
回傳一個值,指示斷言的金鑰識別碼是否等同於指定的金鑰識別子句。
public:
static bool Matches(System::String ^ assertionId, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public static bool Matches(string assertionId, System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
static member Matches : string * System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> bool
Public Shared Function Matches (assertionId As String, keyIdentifierClause As SecurityKeyIdentifierClause) As Boolean
參數
- assertionId
- String
斷言的識別碼。
- keyIdentifierClause
- SecurityKeyIdentifierClause
SecurityKeyIdentifierClause一個比較的例子。
傳回
true若與 assertionId 的Id性質相符keyIdentifierClause;否則, false。
例外狀況
assertionId 是 null 空字串。