共用方式為


AntiforgeryOptions.CookieDomain 屬性

定義

警告

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Domain.

這個屬性已過時,未來版本將會移除。 建議的替代做法是在 上 Cookie

Cookie 上設定的網域。 根據預設,其 null 會導致未設定 「domain」 屬性。

public:
 property System::String ^ CookieDomain { System::String ^ get(); void set(System::String ^ value); };
public string CookieDomain { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Domain.")]
public string CookieDomain { get; set; }
member this.CookieDomain : string with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Domain.")>]
member this.CookieDomain : string with get, set
Public Property CookieDomain As String

屬性值

屬性

適用於