HttpMethodAttribute Constructeurs
Définition
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.
Surcharges
HttpMethodAttribute(IEnumerable<String>) |
Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP. |
HttpMethodAttribute(IEnumerable<String>, String) |
Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP et le modèle d’itinéraire donné. |
HttpMethodAttribute(IEnumerable<String>)
- Source:
- HttpMethodAttribute.cs
- Source:
- HttpMethodAttribute.cs
Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP.
public:
HttpMethodAttribute(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods);
public HttpMethodAttribute (System.Collections.Generic.IEnumerable<string> httpMethods);
new Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute : seq<string> -> Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Public Sub New (httpMethods As IEnumerable(Of String))
Paramètres
- httpMethods
- IEnumerable<String>
S’applique à
HttpMethodAttribute(IEnumerable<String>, String)
- Source:
- HttpMethodAttribute.cs
- Source:
- HttpMethodAttribute.cs
Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP et le modèle d’itinéraire donné.
public:
HttpMethodAttribute(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods, System::String ^ template);
public HttpMethodAttribute (System.Collections.Generic.IEnumerable<string> httpMethods, string template);
public HttpMethodAttribute (System.Collections.Generic.IEnumerable<string> httpMethods, string? template);
new Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute : seq<string> * string -> Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Public Sub New (httpMethods As IEnumerable(Of String), template As String)
Paramètres
- httpMethods
- IEnumerable<String>
Ensemble de méthodes prises en charge. Ce paramètre ne peut pas être null.
- template
- String
Modèle d'itinéraire.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour