HttpMethodMetadata Constructors

Definition

Overloads

HttpMethodMetadata(IEnumerable<String>)

Initializes a new instance of the HttpMethodMetadata class.

HttpMethodMetadata(IEnumerable<String>, Boolean)

Initializes a new instance of the HttpMethodMetadata class.

HttpMethodMetadata(IEnumerable<String>)

Source:
HttpMethodMetadata.cs
Source:
HttpMethodMetadata.cs

Initializes a new instance of the HttpMethodMetadata class.

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

Parameters

httpMethods
IEnumerable<String>

The HTTP methods used during routing. An empty collection means any HTTP method will be accepted.

Applies to

HttpMethodMetadata(IEnumerable<String>, Boolean)

Source:
HttpMethodMetadata.cs
Source:
HttpMethodMetadata.cs

Initializes a new instance of the HttpMethodMetadata class.

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)

Parameters

httpMethods
IEnumerable<String>

The HTTP methods used during routing. An empty collection means any HTTP method will be accepted.

acceptCorsPreflight
Boolean

A value indicating whether routing accepts CORS preflight requests.

Applies to