共用方式為


HttpMethodMetadata.AcceptCorsPreflight 屬性

定義

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

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

屬性值

實作

適用於