ClaimsIdentity.FindAll Metoda

Definice

Načte všechny deklarace identity, které splňují zadanou podmínku.

Přetížení

FindAll(Predicate<Claim>)

Načte všechny deklarace identity odpovídající zadanému predikátu.

FindAll(String)

Načte všechny deklarace identity, které mají zadaný typ deklarace identity.

FindAll(Predicate<Claim>)

Zdroj:
ClaimsIdentity.cs
Zdroj:
ClaimsIdentity.cs
Zdroj:
ClaimsIdentity.cs

Načte všechny deklarace identity odpovídající zadanému predikátu.

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)

Parametry

match
Predicate<Claim>

Funkce, která provádí odpovídající logiku.

Návraty

Odpovídající deklarace identity. Seznam je jen pro čtení.

Výjimky

match je null.

Platí pro

FindAll(String)

Zdroj:
ClaimsIdentity.cs
Zdroj:
ClaimsIdentity.cs
Zdroj:
ClaimsIdentity.cs

Načte všechny deklarace identity, které mají zadaný typ deklarace identity.

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)

Parametry

type
String

Typ deklarace identity, proti kterému se mají deklarace identity shodovat.

Návraty

Odpovídající deklarace identity. Seznam je jen pro čtení.

Výjimky

type je null.

Poznámky

K porovnání se používá pořadová a malá písmena s rozlišováním malých a velkých písmen v type.

Platí pro