HttpMethodMetadata 类

定义

表示路由期间使用的 HTTP 方法元数据。

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
继承
HttpMethodMetadata
实现

构造函数

HttpMethodMetadata(IEnumerable<String>)

初始化 HttpMethodMetadata 类的新实例。

HttpMethodMetadata(IEnumerable<String>, Boolean)

初始化 HttpMethodMetadata 类的新实例。

属性

AcceptCorsPreflight

返回一个值,该值指示关联的终结点是否应接受 CORS 预检请求。

HttpMethods

返回路由期间使用的 HTTP 方法的只读集合。 空集合表示将接受任何 HTTP 方法。

方法

ToString()

表示路由期间使用的 HTTP 方法元数据。

适用于