Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

77 lines
4.3 KiB
C#

using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Xml
{
/// <summary>Resolves external XML resources named by a Uniform Resource Identifier (URI).</summary>
// Token: 0x02000082 RID: 130
[Token(Token = "0x2000082")]
public abstract class XmlResolver
{
/// <summary>When overridden in a derived class, 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 version only returns 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 not 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: 0x0600054D RID: 1357
[Token(Token = "0x600054D")]
[Address(Slot = "4")]
public abstract object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn);
/// <summary>When overridden in a derived class, 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.ArgumentException">
/// <paramref name="relativeUri" /> is <see langword="null" />.</exception>
// Token: 0x0600054E RID: 1358 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600054E")]
[Address(RVA = "0x5E1A40", Offset = "0x5E0840", VA = "0x1805E1A40", Slot = "5")]
public virtual Uri ResolveUri(Uri baseUri, string relativeUri)
{
return null;
}
/// <summary>Enables the resolver to return types other than <see cref="T:System.IO.Stream" />.</summary>
/// <param name="absoluteUri">The URI.</param>
/// <param name="type">The type to return.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="type" /> is supported; otherwise, <see langword="false" />.</returns>
// Token: 0x0600054F RID: 1359 RVA: 0x00004230 File Offset: 0x00002430
[Token(Token = "0x600054F")]
[Address(RVA = "0x5E1C20", Offset = "0x5E0A20", VA = "0x1805E1C20", Slot = "6")]
public virtual bool SupportsType(Uri absoluteUri, Type type)
{
return default(bool);
}
/// <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 version 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: 0x06000550 RID: 1360 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000550")]
[Address(RVA = "0x5E19F0", Offset = "0x5E07F0", VA = "0x1805E19F0", Slot = "7")]
public virtual Task<object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn)
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Xml.XmlResolver" /> class.</summary>
// Token: 0x06000551 RID: 1361 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000551")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected XmlResolver()
{
}
}
}