ClaimsPrincipal.FindAll Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère toutes les revendications qui correspondent à une condition spécifiée.
FindAll(Predicate<Claim>) |
Récupère toutes les revendications qui sont mises en correspondance par le prédicat spécifié. |
FindAll(String) |
Récupère toutes les revendications qui ont le type de revendication spécifié. |
- Source:
- ClaimsPrincipal.cs
- Source:
- ClaimsPrincipal.cs
- Source:
- ClaimsPrincipal.cs
Récupère toutes les revendications qui sont mises en correspondance par le prédicat spécifié.
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)
Paramètres
Retours
Revendications correspondantes.
Exceptions
match
a la valeur null
.
Remarques
Retourne les revendications de toutes les identités associées au principal des revendications.
S’applique à
.NET 9 et autres versions
Produit | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
- Source:
- ClaimsPrincipal.cs
- Source:
- ClaimsPrincipal.cs
- Source:
- ClaimsPrincipal.cs
Récupère toutes les revendications qui ont le type de revendication spécifié.
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)
Paramètres
- type
- String
Type de revendication auquel les revendications doivent correspondre.
Retours
Revendications correspondantes.
Exceptions
type
a la valeur null
.
Remarques
Retourne les revendications de toutes les identités associées au principal des revendications. La comparaison est effectuée à l’aide de la casse ordinale non sensible sur type
.
S’applique à
.NET 9 et autres versions
Produit | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: