ClaimsPrincipal.FindAll Metoda

Definice

Načte všechny deklarace identity, které odpovídají zadané podmínce.

Přetížení

FindAll(Predicate<Claim>)

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

FindAll(String)

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

FindAll(Predicate<Claim>)

Zdroj:
ClaimsPrincipal.cs
Zdroj:
ClaimsPrincipal.cs
Zdroj:
ClaimsPrincipal.cs

Načte všechny deklarace identity, které odpovídají 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

Výjimky

match je null.

Poznámky

Vrátí deklarace identity ze všech identit přidružených k objektu deklarací identity.

Platí pro

FindAll(String)

Zdroj:
ClaimsPrincipal.cs
Zdroj:
ClaimsPrincipal.cs
Zdroj:
ClaimsPrincipal.cs

Načte všechny nebo 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 shodovat.

Návraty

Odpovídající deklarace identity

Výjimky

type je null.

Poznámky

Vrátí deklarace identity ze všech identit přidružených k objektu deklarací identity. K porovnání se používá pořadová a malá písmena s rozlišováním na type.

Platí pro