Files
Aug2021-Cpp2IL-Dump/System/Net/Cookie.cs
T
2026-04-10 22:50:51 +02:00

554 lines
18 KiB
C#

using System;
using System.Collections;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Net
{
/// <summary>Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.</summary>
// Token: 0x02000259 RID: 601
[Token(Token = "0x2000259")]
[Serializable]
public sealed class Cookie
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Cookie" /> class.</summary>
// Token: 0x06000EEA RID: 3818 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000EEA")]
[Address(RVA = "0x29E0810", Offset = "0x29DF610", VA = "0x1829E0810")]
public Cookie()
{
}
/// <summary>Gets or sets a comment that the server can add to a <see cref="T:System.Net.Cookie" />.</summary>
/// <returns>An optional comment to document intended usage for this <see cref="T:System.Net.Cookie" />.</returns>
// Token: 0x170002C9 RID: 713
// (get) Token: 0x06000EEB RID: 3819 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000EEC RID: 3820 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002C9")]
public string Comment
{
[Token(Token = "0x6000EEB")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x6000EEC")]
[Address(RVA = "0x29E0CF0", Offset = "0x29DFAF0", VA = "0x1829E0CF0")]
set
{
}
}
/// <summary>Gets or sets a URI comment that the server can provide with a <see cref="T:System.Net.Cookie" />.</summary>
/// <returns>An optional comment that represents the intended usage of the URI reference for this <see cref="T:System.Net.Cookie" />. The value must conform to URI format.</returns>
// Token: 0x170002CA RID: 714
// (set) Token: 0x06000EED RID: 3821 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002CA")]
public Uri CommentUri
{
[Token(Token = "0x6000EED")]
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
set
{
}
}
/// <summary>Determines whether a page script or other active content can access this cookie.</summary>
/// <returns>Boolean value that determines whether a page script or other active content can access this cookie.</returns>
// Token: 0x170002CB RID: 715
// (set) Token: 0x06000EEE RID: 3822 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002CB")]
public bool HttpOnly
{
[Token(Token = "0x6000EEE")]
[Address(RVA = "0x567D30", Offset = "0x566B30", VA = "0x180567D30")]
set
{
}
}
/// <summary>Gets or sets the discard flag set by the server.</summary>
/// <returns>
/// <see langword="true" /> if the client is to discard the <see cref="T:System.Net.Cookie" /> at the end of the current session; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x170002CC RID: 716
// (set) Token: 0x06000EEF RID: 3823 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002CC")]
public bool Discard
{
[Token(Token = "0x6000EEF")]
[Address(RVA = "0x431D60", Offset = "0x430B60", VA = "0x180431D60")]
set
{
}
}
/// <summary>Gets or sets the URI for which the <see cref="T:System.Net.Cookie" /> is valid.</summary>
/// <returns>The URI for which the <see cref="T:System.Net.Cookie" /> is valid.</returns>
// Token: 0x170002CD RID: 717
// (get) Token: 0x06000EF0 RID: 3824 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000EF1 RID: 3825 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002CD")]
public string Domain
{
[Token(Token = "0x6000EF0")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return null;
}
[Token(Token = "0x6000EF1")]
[Address(RVA = "0x29E0D50", Offset = "0x29DFB50", VA = "0x1829E0D50")]
set
{
}
}
// Token: 0x170002CE RID: 718
// (get) Token: 0x06000EF2 RID: 3826 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002CE")]
private string _Domain
{
[Token(Token = "0x6000EF2")]
[Address(RVA = "0x29E0A40", Offset = "0x29DF840", VA = "0x1829E0A40")]
get
{
return null;
}
}
/// <summary>Gets or sets the current state of the <see cref="T:System.Net.Cookie" />.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Cookie" /> has expired; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x170002CF RID: 719
// (get) Token: 0x06000EF3 RID: 3827 RVA: 0x00007428 File Offset: 0x00005628
[Token(Token = "0x170002CF")]
public bool Expired
{
[Token(Token = "0x6000EF3")]
[Address(RVA = "0x29E0960", Offset = "0x29DF760", VA = "0x1829E0960")]
get
{
return default(bool);
}
}
/// <summary>Gets or sets the expiration date and time for the <see cref="T:System.Net.Cookie" /> as a <see cref="T:System.DateTime" />.</summary>
/// <returns>The expiration date and time for the <see cref="T:System.Net.Cookie" /> as a <see cref="T:System.DateTime" /> instance.</returns>
// Token: 0x170002D0 RID: 720
// (set) Token: 0x06000EF4 RID: 3828 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002D0")]
public DateTime Expires
{
[Token(Token = "0x6000EF4")]
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
set
{
}
}
/// <summary>Gets or sets the name for the <see cref="T:System.Net.Cookie" />.</summary>
/// <returns>The name for the <see cref="T:System.Net.Cookie" />.</returns>
/// <exception cref="T:System.Net.CookieException">The value specified for a set operation is <see langword="null" /> or the empty string
/// -or-
/// The value specified for a set operation contained an illegal character. The following characters must not be used inside the <see cref="P:System.Net.Cookie.Name" /> property: equal sign, semicolon, comma, newline (\n), return (\r), tab (\t), and space character. The dollar sign character ("$") cannot be the first character.</exception>
// Token: 0x170002D1 RID: 721
// (get) Token: 0x06000EF5 RID: 3829 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D1")]
public string Name
{
[Token(Token = "0x6000EF5")]
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
get
{
return null;
}
}
// Token: 0x06000EF6 RID: 3830 RVA: 0x00007440 File Offset: 0x00005640
[Token(Token = "0x6000EF6")]
[Address(RVA = "0x29DF110", Offset = "0x29DDF10", VA = "0x1829DF110")]
internal bool InternalSetName(string value)
{
return default(bool);
}
/// <summary>Gets or sets the URIs to which the <see cref="T:System.Net.Cookie" /> applies.</summary>
/// <returns>The URIs to which the <see cref="T:System.Net.Cookie" /> applies.</returns>
// Token: 0x170002D2 RID: 722
// (get) Token: 0x06000EF7 RID: 3831 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000EF8 RID: 3832 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002D2")]
public string Path
{
[Token(Token = "0x6000EF7")]
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
get
{
return null;
}
[Token(Token = "0x6000EF8")]
[Address(RVA = "0x29E0DD0", Offset = "0x29DFBD0", VA = "0x1829E0DD0")]
set
{
}
}
// Token: 0x170002D3 RID: 723
// (get) Token: 0x06000EF9 RID: 3833 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D3")]
private string _Path
{
[Token(Token = "0x6000EF9")]
[Address(RVA = "0x29E0AE0", Offset = "0x29DF8E0", VA = "0x1829E0AE0")]
get
{
return null;
}
}
// Token: 0x170002D4 RID: 724
// (get) Token: 0x06000EFA RID: 3834 RVA: 0x00007458 File Offset: 0x00005658
[Token(Token = "0x170002D4")]
internal bool Plain
{
[Token(Token = "0x6000EFA")]
[Address(RVA = "0x29E0A30", Offset = "0x29DF830", VA = "0x1829E0A30")]
get
{
return default(bool);
}
}
// Token: 0x06000EFB RID: 3835 RVA: 0x00007470 File Offset: 0x00005670
[Token(Token = "0x6000EFB")]
[Address(RVA = "0x29DF200", Offset = "0x29DE000", VA = "0x1829DF200")]
private static bool IsDomainEqualToHost(string domain, string host)
{
return default(bool);
}
// Token: 0x06000EFC RID: 3836 RVA: 0x00007488 File Offset: 0x00005688
[Token(Token = "0x6000EFC")]
[Address(RVA = "0x29DF850", Offset = "0x29DE650", VA = "0x1829DF850")]
internal bool VerifySetDefaults(CookieVariant variant, Uri uri, bool isLocalDomain, string localDomain, bool set_default, bool isThrow)
{
return default(bool);
}
// Token: 0x06000EFD RID: 3837 RVA: 0x000074A0 File Offset: 0x000056A0
[Token(Token = "0x6000EFD")]
[Address(RVA = "0x29DEB80", Offset = "0x29DD980", VA = "0x1829DEB80")]
private static bool DomainCharsTest(string name)
{
return default(bool);
}
/// <summary>Gets or sets a list of TCP ports that the <see cref="T:System.Net.Cookie" /> applies to.</summary>
/// <returns>The list of TCP ports that the <see cref="T:System.Net.Cookie" /> applies to.</returns>
/// <exception cref="T:System.Net.CookieException">The value specified for a set operation could not be parsed or is not enclosed in double quotes.</exception>
// Token: 0x170002D5 RID: 725
// (set) Token: 0x06000EFE RID: 3838 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002D5")]
public string Port
{
[Token(Token = "0x6000EFE")]
[Address(RVA = "0x29E0E30", Offset = "0x29DFC30", VA = "0x1829E0E30")]
set
{
}
}
// Token: 0x170002D6 RID: 726
// (get) Token: 0x06000EFF RID: 3839 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D6")]
internal int[] PortList
{
[Token(Token = "0x6000EFF")]
[Address(RVA = "0x423E10", Offset = "0x422C10", VA = "0x180423E10")]
get
{
return null;
}
}
// Token: 0x170002D7 RID: 727
// (get) Token: 0x06000F00 RID: 3840 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D7")]
private string _Port
{
[Token(Token = "0x6000F00")]
[Address(RVA = "0x29E0B50", Offset = "0x29DF950", VA = "0x1829E0B50")]
get
{
return null;
}
}
/// <summary>Gets or sets the security level of a <see cref="T:System.Net.Cookie" />.</summary>
/// <returns>
/// <see langword="true" /> if the client is only to return the cookie in subsequent requests if those requests use Secure Hypertext Transfer Protocol (HTTPS); otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x170002D8 RID: 728
// (get) Token: 0x06000F01 RID: 3841 RVA: 0x000074B8 File Offset: 0x000056B8
// (set) Token: 0x06000F02 RID: 3842 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002D8")]
public bool Secure
{
[Token(Token = "0x6000F01")]
[Address(RVA = "0x567CF0", Offset = "0x566AF0", VA = "0x180567CF0")]
get
{
return default(bool);
}
[Token(Token = "0x6000F02")]
[Address(RVA = "0x567D40", Offset = "0x566B40", VA = "0x180567D40")]
set
{
}
}
/// <summary>Gets or sets the <see cref="P:System.Net.Cookie.Value" /> for the <see cref="T:System.Net.Cookie" />.</summary>
/// <returns>The <see cref="P:System.Net.Cookie.Value" /> for the <see cref="T:System.Net.Cookie" />.</returns>
// Token: 0x170002D9 RID: 729
// (get) Token: 0x06000F03 RID: 3843 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F04 RID: 3844 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002D9")]
public string Value
{
[Token(Token = "0x6000F03")]
[Address(RVA = "0x567CE0", Offset = "0x566AE0", VA = "0x180567CE0")]
get
{
return null;
}
[Token(Token = "0x6000F04")]
[Address(RVA = "0x29E1220", Offset = "0x29E0020", VA = "0x1829E1220")]
set
{
}
}
// Token: 0x170002DA RID: 730
// (get) Token: 0x06000F05 RID: 3845 RVA: 0x000074D0 File Offset: 0x000056D0
[Token(Token = "0x170002DA")]
internal CookieVariant Variant
{
[Token(Token = "0x6000F05")]
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")]
get
{
return CookieVariant.Unknown;
}
}
// Token: 0x170002DB RID: 731
// (get) Token: 0x06000F06 RID: 3846 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002DB")]
internal string DomainKey
{
[Token(Token = "0x6000F06")]
[Address(RVA = "0x29E0940", Offset = "0x29DF740", VA = "0x1829E0940")]
get
{
return null;
}
}
/// <summary>Gets or sets the version of HTTP state maintenance to which the cookie conforms.</summary>
/// <returns>The version of HTTP state maintenance to which the cookie conforms.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified for a version is not allowed.</exception>
// Token: 0x170002DC RID: 732
// (get) Token: 0x06000F07 RID: 3847 RVA: 0x000074E8 File Offset: 0x000056E8
// (set) Token: 0x06000F08 RID: 3848 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002DC")]
public int Version
{
[Token(Token = "0x6000F07")]
[Address(RVA = "0x404240", Offset = "0x403040", VA = "0x180404240")]
get
{
return 0;
}
[Token(Token = "0x6000F08")]
[Address(RVA = "0x29E1280", Offset = "0x29E0080", VA = "0x1829E1280")]
set
{
}
}
// Token: 0x170002DD RID: 733
// (get) Token: 0x06000F09 RID: 3849 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002DD")]
private string _Version
{
[Token(Token = "0x6000F09")]
[Address(RVA = "0x29E0C00", Offset = "0x29DFA00", VA = "0x1829E0C00")]
get
{
return null;
}
}
// Token: 0x06000F0A RID: 3850 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F0A")]
[Address(RVA = "0x29DED20", Offset = "0x29DDB20", VA = "0x1829DED20")]
internal static IComparer GetComparer()
{
return null;
}
/// <summary>Overrides the <see cref="M:System.Object.Equals(System.Object)" /> method.</summary>
/// <param name="comparand">A reference to a <see cref="T:System.Net.Cookie" />.</param>
/// <returns>Returns <see langword="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.</returns>
// Token: 0x06000F0B RID: 3851 RVA: 0x00007500 File Offset: 0x00005700
[Token(Token = "0x6000F0B")]
[Address(RVA = "0x29DEC10", Offset = "0x29DDA10", VA = "0x1829DEC10", Slot = "0")]
public override bool Equals(object comparand)
{
return default(bool);
}
/// <summary>Overrides the <see cref="M:System.Object.GetHashCode" /> method.</summary>
/// <returns>The 32-bit signed integer hash code for this instance.</returns>
// Token: 0x06000F0C RID: 3852 RVA: 0x00007518 File Offset: 0x00005718
[Token(Token = "0x6000F0C")]
[Address(RVA = "0x29DED80", Offset = "0x29DDB80", VA = "0x1829DED80", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Overrides the <see cref="M:System.Object.ToString" /> method.</summary>
/// <returns>Returns a string representation of this <see cref="T:System.Net.Cookie" /> object that is suitable for including in a HTTP Cookie: request header.</returns>
// Token: 0x06000F0D RID: 3853 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F0D")]
[Address(RVA = "0x29DF260", Offset = "0x29DE060", VA = "0x1829DF260", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x040008C1 RID: 2241
[Token(Token = "0x40008C1")]
internal static readonly char[] PortSplitDelimiters;
// Token: 0x040008C2 RID: 2242
[Token(Token = "0x40008C2")]
internal static readonly char[] Reserved2Name;
// Token: 0x040008C3 RID: 2243
[Token(Token = "0x40008C3")]
internal static readonly char[] Reserved2Value;
// Token: 0x040008C4 RID: 2244
[Token(Token = "0x40008C4")]
private static Comparer staticComparer;
// Token: 0x040008C5 RID: 2245
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008C5")]
private string m_comment;
// Token: 0x040008C6 RID: 2246
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008C6")]
private Uri m_commentUri;
// Token: 0x040008C7 RID: 2247
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40008C7")]
private CookieVariant m_cookieVariant;
// Token: 0x040008C8 RID: 2248
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x40008C8")]
private bool m_discard;
// Token: 0x040008C9 RID: 2249
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40008C9")]
private string m_domain;
// Token: 0x040008CA RID: 2250
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40008CA")]
private bool m_domain_implicit;
// Token: 0x040008CB RID: 2251
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40008CB")]
private DateTime m_expires;
// Token: 0x040008CC RID: 2252
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40008CC")]
private string m_name;
// Token: 0x040008CD RID: 2253
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40008CD")]
private string m_path;
// Token: 0x040008CE RID: 2254
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40008CE")]
private bool m_path_implicit;
// Token: 0x040008CF RID: 2255
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40008CF")]
private string m_port;
// Token: 0x040008D0 RID: 2256
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40008D0")]
private bool m_port_implicit;
// Token: 0x040008D1 RID: 2257
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x40008D1")]
private int[] m_port_list;
// Token: 0x040008D2 RID: 2258
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x40008D2")]
private bool m_secure;
// Token: 0x040008D3 RID: 2259
[FieldOffset(Offset = "0x71")]
[Token(Token = "0x40008D3")]
[OptionalField]
private bool m_httpOnly;
// Token: 0x040008D4 RID: 2260
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40008D4")]
private DateTime m_timeStamp;
// Token: 0x040008D5 RID: 2261
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40008D5")]
private string m_value;
// Token: 0x040008D6 RID: 2262
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40008D6")]
private int m_version;
// Token: 0x040008D7 RID: 2263
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40008D7")]
private string m_domainKey;
// Token: 0x040008D8 RID: 2264
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x40008D8")]
internal bool IsQuotedVersion;
// Token: 0x040008D9 RID: 2265
[FieldOffset(Offset = "0x99")]
[Token(Token = "0x40008D9")]
internal bool IsQuotedDomain;
}
}