SecurityKeyIdentifier.TryFind<TClause>(TClause) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋指定類型的鍵識別子句,並回傳一個值,指示是否能找到該類型的子句。 當找到一個型別時,會以參數回傳 out 。
public:
generic <typename TClause>
where TClause : System::IdentityModel::Tokens::SecurityKeyIdentifierClause bool TryFind([Runtime::InteropServices::Out] TClause % clause);
public bool TryFind<TClause>(out TClause clause) where TClause : System.IdentityModel.Tokens.SecurityKeyIdentifierClause;
member this.TryFind : 'Clause -> bool (requires 'Clause :> System.IdentityModel.Tokens.SecurityKeyIdentifierClause)
Public Function TryFind(Of TClause As SecurityKeyIdentifierClause) (ByRef clause As TClause) As Boolean
類型參數
- TClause
A SecurityKeyIdentifierClause 代表要搜尋集合的金鑰識別子句類型。
參數
- clause
- TClause
當此方法回傳時,包含 SecurityKeyIdentifierClause a 屬於參數指定 TClause 型別的子句,且該子句可在集合中找到。 此參數以未初始化的方式傳遞。
傳回
true當集合中存在參數指定TClause類型的鍵識別子句時;否則,。 false
備註
當集合中不存在參數指定 TClause 類型的金鑰識別子句時, clause 出函參數為 null。