Files
27Aug2021-Cpp2IL-Dump/System.Xml/System/Xml/XmlUrlResolver.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

101 lines
4.7 KiB
C#

using System;
using System.Net;
using System.Net.Cache;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Xml
{
/// <summary>Resolves external XML resources named by a Uniform Resource Identifier (URI).</summary>
// Token: 0x020000FB RID: 251
[Token(Token = "0x20000FB")]
public class XmlUrlResolver : XmlResolver
{
// Token: 0x1700032C RID: 812
// (get) Token: 0x06000C28 RID: 3112 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700032C")]
private static XmlDownloadManager DownloadManager
{
[Token(Token = "0x6000C28")]
[Address(RVA = "0xACB860", Offset = "0xACA860", VA = "0x180ACB860")]
get
{
return null;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Xml.XmlUrlResolver" /> class.</summary>
// Token: 0x06000C29 RID: 3113 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C29")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
public XmlUrlResolver()
{
}
/// <summary>Maps a URI to an object that contains the actual resource.</summary>
/// <param name="absoluteUri">The URI returned from <see cref="M:System.Xml.XmlResolver.ResolveUri(System.Uri,System.String)" />.</param>
/// <param name="role">Currently not used.</param>
/// <param name="ofObjectToReturn">The type of object to return. The current implementation only returns <see cref="T:System.IO.Stream" /> objects.</param>
/// <returns>A stream object or <see langword="null" /> if a type other than stream is specified.</returns>
/// <exception cref="T:System.Xml.XmlException">
/// <paramref name="ofObjectToReturn" /> is neither <see langword="null" /> nor a <see langword="Stream" /> type.</exception>
/// <exception cref="T:System.UriFormatException">The specified URI is not an absolute URI.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="absoluteUri" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Exception">There is a runtime error (for example, an interrupted server connection).</exception>
// Token: 0x06000C2A RID: 3114 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C2A")]
[Address(RVA = "0xACB6C0", Offset = "0xACA6C0", VA = "0x180ACB6C0", Slot = "4")]
public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
{
return null;
}
/// <summary>Resolves the absolute URI from the base and relative URIs.</summary>
/// <param name="baseUri">The base URI used to resolve the relative URI.</param>
/// <param name="relativeUri">The URI to resolve. The URI can be absolute or relative. If absolute, this value effectively replaces the <paramref name="baseUri" /> value. If relative, it combines with the <paramref name="baseUri" /> to make an absolute URI.</param>
/// <returns>The absolute URI, or <see langword="null" /> if the relative URI cannot be resolved.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="baseUri" /> is <see langword="null" /> or <paramref name="relativeUri" /> is <see langword="null" />.</exception>
// Token: 0x06000C2B RID: 3115 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C2B")]
[Address(RVA = "0xACB850", Offset = "0xACA850", VA = "0x180ACB850", Slot = "5")]
public override Uri ResolveUri(Uri baseUri, string relativeUri)
{
return null;
}
/// <summary>Asynchronously maps a URI to an object that contains the actual resource.</summary>
/// <param name="absoluteUri">The URI returned from <see cref="M:System.Xml.XmlResolver.ResolveUri(System.Uri,System.String)" />.</param>
/// <param name="role">Currently not used.</param>
/// <param name="ofObjectToReturn">The type of object to return. The current implementation only returns <see cref="T:System.IO.Stream" /> objects.</param>
/// <returns>A stream object or <see langword="null" /> if a type other than stream is specified.</returns>
// Token: 0x06000C2C RID: 3116 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C2C")]
[Address(RVA = "0xACB5B0", Offset = "0xACA5B0", VA = "0x180ACB5B0", Slot = "7")]
public override Task<object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn)
{
return null;
}
// Token: 0x04000654 RID: 1620
[Token(Token = "0x4000654")]
private static object s_DownloadManager;
// Token: 0x04000655 RID: 1621
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000655")]
private ICredentials _credentials;
// Token: 0x04000656 RID: 1622
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000656")]
private IWebProxy _proxy;
// Token: 0x04000657 RID: 1623
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000657")]
private RequestCachePolicy _cachePolicy;
}
}