Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020000FA RID: 250
[Token(Token = "0x20000FA")]
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: 0x06000C23 RID: 3107
[Token(Token = "0x6000C23")]
[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: 0x06000C24 RID: 3108 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C24")]
[Address(RVA = "0x4B7F80", Offset = "0x4B6F80", VA = "0x1804B7F80", 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: 0x06000C25 RID: 3109 RVA: 0x000068B8 File Offset: 0x00004AB8
[Token(Token = "0x6000C25")]
[Address(RVA = "0x4B8160", Offset = "0x4B7160", VA = "0x1804B8160", 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: 0x06000C26 RID: 3110 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C26")]
[Address(RVA = "0x4B7F30", Offset = "0x4B6F30", VA = "0x1804B7F30", 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: 0x06000C27 RID: 3111 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C27")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected XmlResolver()
{
}
}
}