Aracılığıyla paylaş


HttpMethodMetadata Oluşturucular

Tanım

Aşırı Yüklemeler

HttpMethodMetadata(IEnumerable<String>)

HttpMethodMetadata sınıfının yeni bir örneğini başlatır.

HttpMethodMetadata(IEnumerable<String>, Boolean)

HttpMethodMetadata sınıfının yeni bir örneğini başlatır.

HttpMethodMetadata(IEnumerable<String>)

Kaynak:
HttpMethodMetadata.cs
Kaynak:
HttpMethodMetadata.cs

HttpMethodMetadata sınıfının yeni bir örneğini başlatır.

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))

Parametreler

httpMethods
IEnumerable<String>

Yönlendirme sırasında kullanılan HTTP yöntemleri. Boş bir koleksiyon, herhangi bir HTTP yönteminin kabul edildiği anlamına gelir.

Şunlara uygulanır

HttpMethodMetadata(IEnumerable<String>, Boolean)

Kaynak:
HttpMethodMetadata.cs
Kaynak:
HttpMethodMetadata.cs

HttpMethodMetadata sınıfının yeni bir örneğini başlatır.

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)

Parametreler

httpMethods
IEnumerable<String>

Yönlendirme sırasında kullanılan HTTP yöntemleri. Boş bir koleksiyon, herhangi bir HTTP yönteminin kabul edildiği anlamına gelir.

acceptCorsPreflight
Boolean

Yönlendirmenin CORS denetim öncesi isteklerini kabul edip etmediğini gösteren değer.

Şunlara uygulanır