Share via


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 方法中繼資料。

適用於