Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

611 lines
35 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Type Name="Cookie" FullName="System.Net.Cookie">
<TypeSignature Language="C#" Value="public sealed class Cookie" Maintainer="auto" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit Cookie extends System.Object" />
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
<AssemblyVersion>1.0.3300.0</AssemblyVersion>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Net.Cookie" /> class is used by a client application to retrieve information about cookies that are received with HTTP responses. The following cookie formats are supported during parsing of the HTTP response headers: the original Netscape specification, RFC 2109, and RFC 2965.</para>
<para>For a list of initial property values for an instance of <see cref="T:System.Net.Cookie" />, see the various <see cref="T:System.Net.Cookie" /> constructors.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.</para>
</summary>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Cookie ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The default constructor initializes all fields to their default values, using empty strings ("") for <paramref name="name" />, <paramref name="value" />, <paramref name="path" />, and <paramref name="domain" />. Note that at least the <see cref="P:System.Net.Cookie.Name" /> property must be initialized before using an instance of the <see cref="T:System.Net.Cookie" /> class.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Net.Cookie" /> class.</para>
</summary>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Cookie (string name, string value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, string value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="value" Type="System.String" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The default for the <paramref name="value" /> parameter uses the empty string ("").</para>
<para>The <paramref name="value" /> parameter for a <see cref="T:System.Net.Cookie" /> must not be a null reference (Nothing in Visual Basic). The following characters are reserved and cannot be passed in the <paramref name="value" /> parameter unless the string passed in the <paramref name="value" /> parameter is enclosed in double quotes: semicolon, comma. So the following example constructor would succeed but when you try to add this <see cref="T:System.Net.Cookie" /> to a <see cref="T:System.Net.CookieContainer" /> instance with the <see cref="M:System.Net.CookieContainer.Add(System.Net.Cookie)" /> or <see cref="M:System.Net.CookieContainer.Add(System.Uri,System.Net.Cookie)" /> methods the operation will fail and throw an exception:</para>
<para>System.Net.Cookie cookie = new System.Net.Cookie("contoso", "123,456", "");</para>
<para>However, the following constructor with these special characters escaped will create a <see cref="T:System.Net.Cookie" /> that can be added to a <see cref="T:System.Net.CookieContainer" /> instance:</para>
<para>System.Net.Cookie cookie = new System.Net.Cookie("contoso", "\"123,456\"");</para>
<para>The comma character is used as a delimiter between separate cookies on the same line.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Net.Cookie" /> class with a specified <see cref="P:System.Net.Cookie.Name" /> and <see cref="P:System.Net.Cookie.Value" />.</para>
</summary>
<param name="name">
<attribution license="cc4" from="Microsoft" modified="false" />The name of a <see cref="T:System.Net.Cookie" />. The following characters must not be used inside <paramref name="name" />: equal sign, semicolon, comma, newline (\n), return (\r), tab (\t), and space character. The dollar sign character ("$") cannot be the first character. </param>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value of a <see cref="T:System.Net.Cookie" />. The following characters must not be used inside <paramref name="value" />: semicolon, comma. </param>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Cookie (string name, string value, string path);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, string value, string path) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="value" Type="System.String" />
<Parameter Name="path" Type="System.String" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The default for the <paramref name="path" /> parameter uses the empty string ("").</para>
<para>The <paramref name="value" /> parameter for a <see cref="T:System.Net.Cookie" /> must not be a null reference (Nothing in Visual Basic). The following characters are reserved and can not cannot be passed in the <paramref name="value" /> parameter unless the string passed in the <paramref name="value" /> parameter is enclosed in double quotes: semicolon, comma. So the following example constructor would succeed but when you try to add this <see cref="T:System.Net.Cookie" /> to a <see cref="T:System.Net.CookieContainer" /> instance with the <see cref="M:System.Net.CookieContainer.Add(System.Net.Cookie)" /> or <see cref="M:System.Net.CookieContainer.Add(System.Uri,System.Net.Cookie)" /> methods the operation will fail and throw an exception:</para>
<para>System.Net.Cookie cookie = new System.Net.Cookie("contoso", "123,456", "");</para>
<para>However, the following constructor with these special characters escaped will create a <see cref="T:System.Net.Cookie" /> that can be added to a <see cref="T:System.Net.CookieContainer" /> instance:</para>
<para>System.Net.Cookie cookie = new System.Net.Cookie("contoso", "\"123,456\"", "");</para>
<para>The comma character is used as a delimiter between separate cookies on the same line.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Net.Cookie" /> class with a specified <see cref="P:System.Net.Cookie.Name" />, <see cref="P:System.Net.Cookie.Value" />, and <see cref="P:System.Net.Cookie.Path" />.</para>
</summary>
<param name="name">
<attribution license="cc4" from="Microsoft" modified="false" />The name of a <see cref="T:System.Net.Cookie" />. The following characters must not be used inside <paramref name="name" />: equal sign, semicolon, comma, newline (\n), return (\r), tab (\t), and space character. The dollar sign character ("$") cannot be the first character. </param>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value of a <see cref="T:System.Net.Cookie" />. The following characters must not be used inside <paramref name="value" />: semicolon, comma. </param>
<param name="path">
<attribution license="cc4" from="Microsoft" modified="false" />The subset of URIs on the origin server to which this <see cref="T:System.Net.Cookie" /> applies. The default value is "/". </param>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Cookie (string name, string value, string path, string domain);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, string value, string path, string domain) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="value" Type="System.String" />
<Parameter Name="path" Type="System.String" />
<Parameter Name="domain" Type="System.String" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The default for the <paramref name="domain" /> and <paramref name="path" /> parameters uses the empty string ("").</para>
<para>The <paramref name="value" /> parameter for a <see cref="T:System.Net.Cookie" /> must not be a null reference (Nothing in Visual Basic). The following characters are reserved and cannot be passed in the <paramref name="value" /> parameter unless the string passed in the <paramref name="value" /> parameter is enclosed in double quotes: semicolon, comma. So the following example constructor would succeed but when you try to add this <see cref="T:System.Net.Cookie" /> to a <see cref="T:System.Net.CookieContainer" /> instance with the <see cref="M:System.Net.CookieContainer.Add(System.Net.Cookie)" /> or <see cref="M:System.Net.CookieContainer.Add(System.Uri,System.Net.Cookie)" /> methods the operation will fail and throw an exception:</para>
<para>System.Net.Cookie cookie = new System.Net.Cookie("contoso", "123,456", "");</para>
<para>However, the following constructor with these special characters escaped will create a <see cref="T:System.Net.Cookie" /> that can be added to a <see cref="T:System.Net.CookieContainer" /> instance:</para>
<para>System.Net.Cookie cookie = new System.Net.Cookie("contoso", "\"123,456\"", "", "");</para>
<para>The comma character is used as a delimiter between separate cookies on the same line.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Net.Cookie" /> class with a specified <see cref="P:System.Net.Cookie.Name" />, <see cref="P:System.Net.Cookie.Value" />, <see cref="P:System.Net.Cookie.Path" />, and <see cref="P:System.Net.Cookie.Domain" />.</para>
</summary>
<param name="name">
<attribution license="cc4" from="Microsoft" modified="false" />The name of a <see cref="T:System.Net.Cookie" />. The following characters must not be used inside <paramref name="name" />: equal sign, semicolon, comma, newline (\n), return (\r), tab (\t), and space character. The dollar sign character ("$") cannot be the first character. </param>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value of a <see cref="T:System.Net.Cookie" /> object. The following characters must not be used inside <paramref name="value" />: semicolon, comma. </param>
<param name="path">
<attribution license="cc4" from="Microsoft" modified="false" />The subset of URIs on the origin server to which this <see cref="T:System.Net.Cookie" /> applies. The default value is "/". </param>
<param name="domain">
<attribution license="cc4" from="Microsoft" modified="false" />The optional internet domain for which this <see cref="T:System.Net.Cookie" /> is valid. The default value is the host this <see cref="T:System.Net.Cookie" /> has been received from. </param>
</Docs>
</Member>
<Member MemberName="Comment">
<MemberSignature Language="C#" Value="public string Comment { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Comment" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The client can inspect this optional comment for information added by the server. For example, the server could include information about issues like the privacy policy or intended usage.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets a comment that the server can add to a <see cref="T:System.Net.Cookie" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="CommentUri">
<MemberSignature Language="C#" Value="public Uri CommentUri { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Uri CommentUri" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Uri</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'Uri'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The URI can provide optional information, such as how the server uses the <see cref="T:System.Net.Cookie" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets a URI comment that the server can provide with a <see cref="T:System.Net.Cookie" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Discard">
<MemberSignature Language="C#" Value="public bool Discard { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Discard" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'bool'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>When true, this property instructs the client application not to save the <see cref="T:System.Net.Cookie" /> on the user's hard disk when a session ends.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the discard flag set by the server.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Domain">
<MemberSignature Language="C#" Value="public string Domain { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Domain" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A server cannot indicate a domain other than its own URI. However, it can indicate more than one server in the domain. The default value is the host that this cookie has been received from.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the URI for which the <see cref="T:System.Net.Cookie" /> is valid.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="C#" Value="public override bool Equals (object comparand);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object comparand) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="comparand" Type="System.Object" />
</Parameters>
<Docs>
<remarks>To be added</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Overrides the <see cref="M:System.Object.Equals(System.Object)" /> method.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns true if the <see cref="T:System.Net.Cookie" /> is equal to <paramref name="comparand" />. Two <see cref="T:System.Net.Cookie" /> instances are equal if their <see cref="P:System.Net.Cookie.Name" />, <see cref="P:System.Net.Cookie.Value" />, <see cref="P:System.Net.Cookie.Path" />, <see cref="P:System.Net.Cookie.Domain" />, and <see cref="P:System.Net.Cookie.Version" /> properties are equal. <see cref="P:System.Net.Cookie.Name" /> and <see cref="P:System.Net.Cookie.Domain" /> string comparisons are case-insensitive.</para>
</returns>
<param name="comparand">
<attribution license="cc4" from="Microsoft" modified="false" />A reference to a <see cref="T:System.Net.Cookie" />. </param>
</Docs>
</Member>
<Member MemberName="Expired">
<MemberSignature Language="C#" Value="public bool Expired { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Expired" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'bool'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Expired cookies, if received, should be destroyed by the client application.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the current state of the <see cref="T:System.Net.Cookie" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Expires">
<MemberSignature Language="C#" Value="public DateTime Expires { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.DateTime Expires" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'DateTime'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Setting the <see cref="P:System.Net.Cookie.Expires" /> property to <see cref="F:System.DateTime.MinValue" /> makes this a session <see cref="T:System.Net.Cookie" />, which is its default value.</para>
<para>The <see cref="T:System.DateTimeKind" /> property of <see cref="P:System.Net.Cookie.Expires" /> is used to determine if the <see cref="T:System.Net.Cookie" /> is set in <see cref="F:System.DateTimeKind.Local" /> or <see cref="F:System.DateTimeKind.Utc" />. If the <see cref="T:System.DateTimeKind" /> property is set to <see cref="F:System.DateTimeKind.Unspecified" />, then <see cref="F:System.DateTimeKind.Utc" /> is assumed. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the expiration date and time for the <see cref="T:System.Net.Cookie" /> as a <see cref="T:System.DateTime" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="GetHashCode">
<MemberSignature Language="C#" Value="public override int GetHashCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Classes that might be used as a key in a hash table must provide this override, because objects that are used as keys in a hash table are required to generate their own hash code through this method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Overrides the <see cref="M:System.Object.GetHashCode" /> method.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The 32-bit signed integer hash code for this instance.</para>
</returns>
</Docs>
</Member>
<Member MemberName="HttpOnly">
<MemberSignature Language="C#" Value="public bool HttpOnly { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HttpOnly" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>When this property is set to true, a page script or other active content cannot access this cookie.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Determines whether a page script or other active content can access this cookie.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Name">
<MemberSignature Language="C#" Value="public string Name { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Name" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="P:System.Net.Cookie.Name" /> property must be initialized before using an instance of the <see cref="T:System.Net.Cookie" /> class. </para>
<para>The following characters are reserved and cannot be used for this attribute value: equal sign, semicolon, comma, new line (\n), return (\r), tab (\t), and space character. The dollar sign ($) character cannot be the first character.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the name for the <see cref="T:System.Net.Cookie" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Path">
<MemberSignature Language="C#" Value="public string Path { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Path" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="P:System.Net.Cookie.Path" /> property specifies the subset of URIs on the origin server to which this <see cref="T:System.Net.Cookie" /> applies. If this propery is not specified, then this <see cref="T:System.Net.Cookie" /> will be sent to all pages on the origin server or servers.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the URIs to which the <see cref="T:System.Net.Cookie" /> applies.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Port">
<MemberSignature Language="C#" Value="public string Port { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Port" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This attribute restricts the ports to which this <see cref="T:System.Net.Cookie" /> may be sent. The default value means no restriction. Setting this to the empty string ("") will restrict the port to the one used in the HTTP response. Otherwise, the value must be a double-quoted string that contains port values delimited with commas.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets a list of TCP ports that the <see cref="T:System.Net.Cookie" /> applies to.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Secure">
<MemberSignature Language="C#" Value="public bool Secure { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Secure" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'bool'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>In effect, when this property is true this cookie may be sent only with https:// requests.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the security level of a <see cref="T:System.Net.Cookie" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="TimeStamp">
<MemberSignature Language="C#" Value="public DateTime TimeStamp { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.DateTime TimeStamp" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'DateTime'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This is a read-only property.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the time when the cookie was issued as a <see cref="T:System.DateTime" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public override string ToString ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The exact format of the string depends on the RFC that this cookie conforms to.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Overrides the <see cref="M:System.Object.ToString" /> method.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a string representation of this <see cref="T:System.Net.Cookie" /> object that is suitable for including in a HTTP Cookie: request header.</para>
</returns>
</Docs>
</Member>
<Member MemberName="Value">
<MemberSignature Language="C#" Value="public string Value { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Value" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="P:System.Net.Cookie.Value" /> of a <see cref="T:System.Net.Cookie" /> must not be null. The following characters are reserved and cannot be used for this property: semicolon, comma.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the <see cref="P:System.Net.Cookie.Value" /> for the <see cref="T:System.Net.Cookie" />.</para>
</summary>
</Docs>
</Member>
<Member MemberName="Version">
<MemberSignature Language="C#" Value="public int Version { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Version" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
</Parameters>
<Docs>
<value>To be added: an object of type 'int'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The default value for the <see cref="P:System.Net.Cookie.Version" /> property is 0, complying with the original Netscape specification. If the value is explicitly set to 1, then this <see cref="T:System.Net.Cookie" /> must conform to RFC 2109. Note that if a <see cref="T:System.Net.Cookie" /> was created automatically by receiving a Set-Cookie2 HTTP response header, the conformance is set to RFC 2965.</para>
<para>An attempt to set the <see cref="P:System.Net.Cookie.Version" /> property to a value less than zero will throw an exception. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the version of HTTP state maintenance to which the cookie conforms.</para>
</summary>
</Docs>
</Member>
</Members>
</Type>