AntiforgeryOptions.CookieDomain 属性

定义

注意

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

此属性已过时,将在将来的版本中删除。 建议的替代项是在 上 Cookie

在 Cookie 上设置的域。 默认情况下,它 null 会导致未设置“域”属性。

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

属性值

属性

适用于