共用方式為


IHttpMethodMetadata.AcceptCorsPreflight 屬性

定義

傳回值,指出相關聯的端點是否應該接受 CORS 預檢要求。

public:
 property bool AcceptCorsPreflight { bool get(); };
public bool AcceptCorsPreflight { get; }
public virtual bool AcceptCorsPreflight { get; set; }
member this.AcceptCorsPreflight : bool
member this.AcceptCorsPreflight : bool with get, set
Public ReadOnly Property AcceptCorsPreflight As Boolean
Public Overridable Property AcceptCorsPreflight As Boolean

屬性值

適用於