共用方式為


SetCookieHeaderValue.Domain 屬性

定義

取得或設定 Cookie 屬性的值 Domain

Domain 屬性會指定要傳送 Cookie 的主機。

public:
 property System::String ^ Domain { System::String ^ get(); void set(System::String ^ value); };
public:
 property Microsoft::Extensions::Primitives::StringSegment Domain { Microsoft::Extensions::Primitives::StringSegment get(); void set(Microsoft::Extensions::Primitives::StringSegment value); };
public string Domain { get; set; }
public Microsoft.Extensions.Primitives.StringSegment Domain { get; set; }
member this.Domain : string with get, set
member this.Domain : Microsoft.Extensions.Primitives.StringSegment with get, set
Public Property Domain As String
Public Property Domain As StringSegment

屬性值

備註

請參閱 https://tools.ietf.org/html/rfc6265#section-4.1.2.3

適用於