XmlPreloadedResolver Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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() |
Initializes a new instance of the XmlPreloadedResolver class. |
XmlPreloadedResolver(XmlKnownDtds) |
Initializes a new instance of the XmlPreloadedResolver class with the specified preloaded well-known DTDs. |
XmlPreloadedResolver(XmlResolver) |
Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver. |
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>) |
Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver, preloaded well-known DTDs, and URI equality comparer. |
Properties
Credentials |
Sets the credentials that are used to authenticate the underlying WebRequest. |
PreloadedUris |
Gets a collection of preloaded URIs. |
Methods
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) |
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) |
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) |
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) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEntity(Uri, String, Type) |
Maps a URI to an object that contains the actual resource. |
GetEntityAsync(Uri, String, Type) |
Asynchronously maps a URI to an object that contains the actual resource. |
GetEntityAsync(Uri, String, Type) |
Asynchronously maps a URI to an object that contains the actual resource. (Inherited from XmlResolver) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(Uri) |
Removes the data that corresponds to the URI from the XmlPreloadedResolver. |
ResolveUri(Uri, String) |
Resolves the absolute URI from the base and relative URIs. |
SupportsType(Uri, Type) |
Determines whether the resolver supports other Types than just Stream. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |