ClaimsIdentity.FindAll Método
Definição
Recupera todas as declarações que correspondem a uma condição especificada.Retrieves all of the claims that match a specified condition.
Sobrecargas
| FindAll(Predicate<Claim>) |
Recupera todas as declarações que correspondem ao predicado especificado.Retrieves all of the claims that are matched by the specified predicate. |
| FindAll(String) |
Recupera todas as declarações que têm o tipo de declaração especificado.Retrieves all of the claims that have the specified claim type. |
FindAll(Predicate<Claim>)
Recupera todas as declarações que correspondem ao predicado especificado.Retrieves all of the claims that are matched by the specified predicate.
public:
virtual System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ FindAll(Predicate<System::Security::Claims::Claim ^> ^ match);
public virtual System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> FindAll (Predicate<System.Security.Claims.Claim> match);
abstract member FindAll : Predicate<System.Security.Claims.Claim> -> seq<System.Security.Claims.Claim>
override this.FindAll : Predicate<System.Security.Claims.Claim> -> seq<System.Security.Claims.Claim>
Public Overridable Function FindAll (match As Predicate(Of Claim)) As IEnumerable(Of Claim)
Parâmetros
A função que executa a lógica de correspondência.The function that performs the matching logic.
Retornos
As declarações correspondentes.The matching claims. A lista é somente leitura.The list is read-only.
Exceções
match é null.match is null.
Aplica-se a
FindAll(String)
Recupera todas as declarações que têm o tipo de declaração especificado.Retrieves all of the claims that have the specified claim type.
public:
virtual System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ FindAll(System::String ^ type);
public virtual System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> FindAll (string type);
abstract member FindAll : string -> seq<System.Security.Claims.Claim>
override this.FindAll : string -> seq<System.Security.Claims.Claim>
Public Overridable Function FindAll (type As String) As IEnumerable(Of Claim)
Parâmetros
- type
- String
O tipo de declaração com o qual corresponder declarações.The claim type against which to match claims.
Retornos
As declarações correspondentes.The matching claims. A lista é somente leitura.The list is read-only.
Exceções
type é null.type is null.
Comentários
A comparação é feita usando o uso ordinal de maiúsculas e minúsculas type .The comparison is made using Ordinal case in-sensitive on type.