共用方式為


HttpMethodMetadata 建構函式

定義

多載

HttpMethodMetadata(IEnumerable<String>)

初始化 HttpMethodMetadata 類別的新執行個體。

HttpMethodMetadata(IEnumerable<String>, Boolean)

初始化 HttpMethodMetadata 類別的新執行個體。

HttpMethodMetadata(IEnumerable<String>)

來源:
HttpMethodMetadata.cs
來源:
HttpMethodMetadata.cs

初始化 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))

參數

httpMethods
IEnumerable<String>

路由期間使用的 HTTP 方法。 空集合表示將接受任何 HTTP 方法。

適用於

HttpMethodMetadata(IEnumerable<String>, Boolean)

來源:
HttpMethodMetadata.cs
來源:
HttpMethodMetadata.cs

初始化 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)

參數

httpMethods
IEnumerable<String>

路由期間使用的 HTTP 方法。 空集合表示將接受任何 HTTP 方法。

acceptCorsPreflight
Boolean

值,指出路由是否接受 CORS 預檢要求。

適用於