XmlPreloadedResolver XmlPreloadedResolver XmlPreloadedResolver XmlPreloadedResolver Class

Definition

Represents a class that is used to prepopulate the cache with DTDs or XML streams.

public ref class XmlPreloadedResolver : System::Xml::XmlResolver
public class XmlPreloadedResolver : System.Xml.XmlResolver
type XmlPreloadedResolver = class
    inherit XmlResolver
Public Class XmlPreloadedResolver
Inherits XmlResolver
Inheritance
XmlPreloadedResolverXmlPreloadedResolverXmlPreloadedResolverXmlPreloadedResolver

Remarks

The XmlPreloadedResolver type is used as a resolver when automatic calls to the network are not desired or are not possible. For example, this type can be used for loading cached external DTDs. Or, you might use XmlPreloadedResolver to preload well-known DTDs that are defined in XHTML 1.0. Preloading well-known DTDs does not start any network connections because these DTDs are already embedded in the System.Xml.Utils assembly. Currently, XmlPreloadedResolver includes the DTDs that are defined in XHTML 1.0 and RSS 0.91.

Constructors

XmlPreloadedResolver() XmlPreloadedResolver() XmlPreloadedResolver() XmlPreloadedResolver()

Initializes a new instance of the XmlPreloadedResolver class.

XmlPreloadedResolver(XmlKnownDtds) XmlPreloadedResolver(XmlKnownDtds) XmlPreloadedResolver(XmlKnownDtds) XmlPreloadedResolver(XmlKnownDtds)

Initializes a new instance of the XmlPreloadedResolver class with the specified preloaded well-known DTDs.

XmlPreloadedResolver(XmlResolver) XmlPreloadedResolver(XmlResolver) XmlPreloadedResolver(XmlResolver) XmlPreloadedResolver(XmlResolver)

Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver.

XmlPreloadedResolver(XmlResolver, XmlKnownDtds) XmlPreloadedResolver(XmlResolver, XmlKnownDtds) XmlPreloadedResolver(XmlResolver, XmlKnownDtds) XmlPreloadedResolver(XmlResolver, XmlKnownDtds)

Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver and preloaded well-known DTDs.

XmlPreloadedResolver(XmlResolver, XmlKnownDtds, IEqualityComparer<Uri>) XmlPreloadedResolver(XmlResolver, XmlKnownDtds, IEqualityComparer<Uri>) XmlPreloadedResolver(XmlResolver, XmlKnownDtds, IEqualityComparer<Uri>) XmlPreloadedResolver(XmlResolver, XmlKnownDtds, IEqualityComparer<Uri>)

Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver, preloaded well-known DTDs, and URI equality comparer.

Properties

Credentials Credentials Credentials Credentials

Sets the credentials that are used to authenticate the underlying WebRequest.

PreloadedUris PreloadedUris PreloadedUris PreloadedUris

Gets a collection of preloaded URIs.

Methods

Add(Uri, Byte[]) Add(Uri, Byte[]) Add(Uri, Byte[]) Add(Uri, Byte[])

Adds a byte array to the XmlPreloadedResolver store and maps it to a URI. If the store already contains a mapping for the same URI, the existing mapping is overridden.

Add(Uri, Byte[], Int32, Int32) Add(Uri, Byte[], Int32, Int32) Add(Uri, Byte[], Int32, Int32) Add(Uri, Byte[], Int32, Int32)

Adds a byte array to the XmlPreloadedResolver store and maps it to a URI. If the store already contains a mapping for the same URI, the existing mapping is overridden.

Add(Uri, Stream) Add(Uri, Stream) Add(Uri, Stream) Add(Uri, Stream)

Adds a Stream to the XmlPreloadedResolver store and maps it to a URI. If the store already contains a mapping for the same URI, the existing mapping is overridden.

Add(Uri, String) Add(Uri, String) Add(Uri, String) Add(Uri, String)

Adds a string with preloaded data to the XmlPreloadedResolver store and maps it to a URI. If the store already contains a mapping for the same URI, the existing mapping is overridden.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEntity(Uri, String, Type) GetEntity(Uri, String, Type) GetEntity(Uri, String, Type) GetEntity(Uri, String, Type)

Maps a URI to an object that contains the actual resource.

GetEntityAsync(Uri, String, Type) GetEntityAsync(Uri, String, Type) GetEntityAsync(Uri, String, Type) GetEntityAsync(Uri, String, Type)

Asynchronously maps a URI to an object that contains the actual resource.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Uri) Remove(Uri) Remove(Uri) Remove(Uri)

Removes the data that corresponds to the URI from the XmlPreloadedResolver.

ResolveUri(Uri, String) ResolveUri(Uri, String) ResolveUri(Uri, String) ResolveUri(Uri, String)

Resolves the absolute URI from the base and relative URIs.

SupportsType(Uri, Type) SupportsType(Uri, Type) SupportsType(Uri, Type) SupportsType(Uri, Type)

Determines whether the resolver supports other Types than just Stream.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to