SetCookieHeaderValue.Domain 属性

定义

获取或设置 Cookie 属性的值 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

适用于