Files
Dec2017-Script-Dump/System/Net/WebResponse.cs
T
2026-06-04 11:42:34 +02:00

185 lines
10 KiB
C#

using System;
using System.IO;
using System.Runtime.Serialization;
namespace System.Net
{
/// <summary>Provides a response from a Uniform Resource Identifier (URI). This is an abstract class.</summary>
// Token: 0x02000274 RID: 628
[Serializable]
public abstract class WebResponse : MarshalByRefObject, IDisposable, ISerializable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebResponse" /> class.</summary>
// Token: 0x06001742 RID: 5954 RVA: 0x0004DF98 File Offset: 0x0004C198
protected WebResponse()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebResponse" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="serializationInfo">An instance of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> class that contains the information required to serialize the new <see cref="T:System.Net.WebRequest" /> instance. </param>
/// <param name="streamingContext">An instance of the <see cref="T:System.Runtime.Serialization.StreamingContext" /> class that indicates the source of the serialized stream that is associated with the new <see cref="T:System.Net.WebRequest" /> instance. </param>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to access the constructor, when the constructor is not overridden in a descendant class. </exception>
// Token: 0x06001743 RID: 5955 RVA: 0x0004DFA0 File Offset: 0x0004C1A0
protected WebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw new NotSupportedException();
}
/// <summary>When overridden in a derived class, releases all resources used by the <see cref="T:System.Net.WebResponse" />. </summary>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to access the method, when the method is not overridden in a descendant class. </exception>
// Token: 0x06001744 RID: 5956 RVA: 0x0004DFB0 File Offset: 0x0004C1B0
void IDisposable.Dispose()
{
this.Close();
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance with the data that is needed to serialize <see cref="T:System.Net.WebResponse" />. </summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that will hold the serialized data for the <see cref="T:System.Net.WebResponse" />. </param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the destination of the serialized stream that is associated with the new <see cref="T:System.Net.WebResponse" />. </param>
// Token: 0x06001745 RID: 5957 RVA: 0x0004DFB8 File Offset: 0x0004C1B8
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw new NotSupportedException();
}
/// <summary>When overridden in a descendant class, gets or sets the content length of data being received.</summary>
/// <returns>The number of bytes returned from the Internet resource.</returns>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to get or set the property, when the property is not overridden in a descendant class. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x17000764 RID: 1892
// (get) Token: 0x06001746 RID: 5958 RVA: 0x0004DFC0 File Offset: 0x0004C1C0
// (set) Token: 0x06001747 RID: 5959 RVA: 0x0004DFC8 File Offset: 0x0004C1C8
public virtual long ContentLength
{
get
{
throw new NotSupportedException();
}
set
{
throw new NotSupportedException();
}
}
/// <summary>When overridden in a derived class, gets or sets the content type of the data being received.</summary>
/// <returns>A string that contains the content type of the response.</returns>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to get or set the property, when the property is not overridden in a descendant class. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x17000765 RID: 1893
// (get) Token: 0x06001748 RID: 5960 RVA: 0x0004DFD0 File Offset: 0x0004C1D0
// (set) Token: 0x06001749 RID: 5961 RVA: 0x0004DFD8 File Offset: 0x0004C1D8
public virtual string ContentType
{
get
{
throw new NotSupportedException();
}
set
{
throw new NotSupportedException();
}
}
/// <summary>When overridden in a derived class, gets a collection of header name-value pairs associated with this request.</summary>
/// <returns>An instance of the <see cref="T:System.Net.WebHeaderCollection" /> class that contains header values associated with this response.</returns>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to get or set the property, when the property is not overridden in a descendant class. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x17000766 RID: 1894
// (get) Token: 0x0600174A RID: 5962 RVA: 0x0004DFE0 File Offset: 0x0004C1E0
public virtual WebHeaderCollection Headers
{
get
{
throw new NotSupportedException();
}
}
// Token: 0x0600174B RID: 5963 RVA: 0x0004DFE8 File Offset: 0x0004C1E8
private static Exception GetMustImplement()
{
return new NotImplementedException();
}
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether this response was obtained from the cache.</summary>
/// <returns>true if the response was taken from the cache; otherwise, false.</returns>
// Token: 0x17000767 RID: 1895
// (get) Token: 0x0600174C RID: 5964 RVA: 0x0004DFF0 File Offset: 0x0004C1F0
[global::System.MonoTODO]
public virtual bool IsFromCache
{
get
{
throw WebResponse.GetMustImplement();
}
}
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether mutual authentication occurred.</summary>
/// <returns>true if both client and server were authenticated; otherwise, false.</returns>
// Token: 0x17000768 RID: 1896
// (get) Token: 0x0600174D RID: 5965 RVA: 0x0004DFF8 File Offset: 0x0004C1F8
[global::System.MonoTODO]
public virtual bool IsMutuallyAuthenticated
{
get
{
throw WebResponse.GetMustImplement();
}
}
/// <summary>When overridden in a derived class, gets the URI of the Internet resource that actually responded to the request.</summary>
/// <returns>An instance of the <see cref="T:System.Uri" /> class that contains the URI of the Internet resource that actually responded to the request.</returns>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to get or set the property, when the property is not overridden in a descendant class. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x17000769 RID: 1897
// (get) Token: 0x0600174E RID: 5966 RVA: 0x0004E000 File Offset: 0x0004C200
public virtual global::System.Uri ResponseUri
{
get
{
throw new NotSupportedException();
}
}
/// <summary>When overridden by a descendant class, closes the response stream.</summary>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to access the method, when the method is not overridden in a descendant class. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x0600174F RID: 5967 RVA: 0x0004E008 File Offset: 0x0004C208
public virtual void Close()
{
throw new NotSupportedException();
}
/// <summary>When overridden in a descendant class, returns the data stream from the Internet resource.</summary>
/// <returns>An instance of the <see cref="T:System.IO.Stream" /> class for reading data from the Internet resource.</returns>
/// <exception cref="T:System.NotSupportedException">Any attempt is made to access the method, when the method is not overridden in a descendant class. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// </PermissionSet>
// Token: 0x06001750 RID: 5968 RVA: 0x0004E010 File Offset: 0x0004C210
public virtual Stream GetResponseStream()
{
throw new NotSupportedException();
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data that is needed to serialize the target object.</summary>
/// <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to populate with data. </param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for this serialization. </param>
// Token: 0x06001751 RID: 5969 RVA: 0x0004E018 File Offset: 0x0004C218
[global::System.MonoTODO]
protected virtual void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw WebResponse.GetMustImplement();
}
}
}