SetCookieHeaderValue.Domain Property

Definition

Gets or sets a value for the Domain cookie attribute.

The Domain attribute specifies those hosts to which the cookie will be sent.

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

Property Value

Remarks

See https://tools.ietf.org/html/rfc6265#section-4.1.2.3.

Applies to