SecurityKeyIdentifier.TryFind<TClause>(TClause) 方法

定義

搜尋指定型別的金鑰識別碼子句並傳回值,這個值指出是否找到該型別的子句。 當找到任何型別時,會在 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

SecurityKeyIdentifierClause,表示要在集合中搜尋之金鑰識別碼子句的型別。

參數

clause
TClause

當在集合中找到該型別的子句而傳回這個方法時,會包含由 SecurityKeyIdentifierClause 參數指定型別的 TClause。 這個參數是以未初始化的狀態傳遞。

傳回

如果集合中有由 true 參數指定型別的金鑰識別碼子句,則為 TClause,否則為 false

備註

當集合中沒有由 TClause 參數指定型別的金鑰識別碼子句時,clause out 參數會是 null

適用於