Dela via


HttpCookie.Name Property

Definition

Get the token that represents the HttpCookie name.

public:
 property Platform::String ^ Name { Platform::String ^ get(); };
winrt::hstring Name();
public string Name { get; }
var string = httpCookie.name;
Public ReadOnly Property Name As String

Property Value

String

Platform::String

winrt::hstring

The token that represents the HttpCookie name.

Remarks

The Name property must be set when HttpCookie is initialized by the constructor.

The Name of the HttpCookie can't be null (Nothing in Visual Basic).

The property should be a token as defined in RFC 2616 and RFC 6265.

The following characters are used as separators and can't be used in the cookie name:

  • left paren ('(')
  • right paren (')')
  • greater than ('>')
  • less than ('<')
  • at sign ('@')
  • comma (',')
  • semicolon (';')
  • colon (':')
  • backslash ('\')
  • double quote ('"')
  • forward slash ('/')
  • left square bracket ('[')
  • right square bracket (']')
  • question mark ('?')
  • equal sign ('=')
  • left squiggly bracket ('{')
  • right squiggly bracket ('}')
  • new line ('\n')
  • return ('\r")
  • space (' ')
  • tab ('\t")

Applies to