语言

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。

适用于