Dela via


HttpMethodMetadata Class

Definition

Represents HTTP method metadata used during routing.

public ref class HttpMethodMetadata sealed : Microsoft::AspNetCore::Routing::IHttpMethodMetadata
public sealed class HttpMethodMetadata : Microsoft.AspNetCore.Routing.IHttpMethodMetadata
type HttpMethodMetadata = class
    interface IHttpMethodMetadata
Public NotInheritable Class HttpMethodMetadata
Implements IHttpMethodMetadata
Inheritance
HttpMethodMetadata
Implements

Constructors

HttpMethodMetadata(IEnumerable<String>, Boolean)

Initializes a new instance of the HttpMethodMetadata class.

HttpMethodMetadata(IEnumerable<String>)

Initializes a new instance of the HttpMethodMetadata class.

Properties

AcceptCorsPreflight

Returns a value indicating whether the associated endpoint should accept CORS preflight requests.

HttpMethods

Returns a read-only collection of HTTP methods used during routing. An empty collection means any HTTP method will be accepted.

Methods

ToString()

Returns a string that represents the current object.

Applies to