HttpMethodMetadata Constructeurs

Définition

Surcharges

HttpMethodMetadata(IEnumerable<String>)

Initialise une nouvelle instance de la classe HttpMethodMetadata.

HttpMethodMetadata(IEnumerable<String>, Boolean)

Initialise une nouvelle instance de la classe HttpMethodMetadata.

HttpMethodMetadata(IEnumerable<String>)

Initialise une nouvelle instance de la classe HttpMethodMetadata.

public:
 HttpMethodMetadata(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods);
public HttpMethodMetadata (System.Collections.Generic.IEnumerable<string> httpMethods);
new Microsoft.AspNetCore.Routing.HttpMethodMetadata : seq<string> -> Microsoft.AspNetCore.Routing.HttpMethodMetadata
Public Sub New (httpMethods As IEnumerable(Of String))

Paramètres

httpMethods
IEnumerable<String>

Méthodes HTTP utilisées pendant le routage. Une collection vide signifie que toute méthode HTTP est acceptée.

S’applique à

HttpMethodMetadata(IEnumerable<String>, Boolean)

Initialise une nouvelle instance de la classe HttpMethodMetadata.

public:
 HttpMethodMetadata(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods, bool acceptCorsPreflight);
public HttpMethodMetadata (System.Collections.Generic.IEnumerable<string> httpMethods, bool acceptCorsPreflight);
new Microsoft.AspNetCore.Routing.HttpMethodMetadata : seq<string> * bool -> Microsoft.AspNetCore.Routing.HttpMethodMetadata
Public Sub New (httpMethods As IEnumerable(Of String), acceptCorsPreflight As Boolean)

Paramètres

httpMethods
IEnumerable<String>

Méthodes HTTP utilisées pendant le routage. Une collection vide signifie que toute méthode HTTP est acceptée.

acceptCorsPreflight
Boolean

Valeur indiquant si le routage accepte les demandes de contrôle préalable CORS.

S’applique à