XmlPreloadedResolver Class
The XmlPreloadedResolver type is used to prepopulate the cache with DTDs or XML streams.
Assembly: System.Xml (in System.Xml.dll)
The XmlPreloadedResolver type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Credentials | Sets credentials that are used to authenticate underlying WebRequest. (Overrides XmlResolver::Credentials.) |
![]() | PreloadedUris | Gets a collection of preloaded URIs. |
| Name | Description | |
|---|---|---|
![]() | Add(Uri, array<Byte>) | Adds a Stream, byte array, or 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. |
![]() | Add(Uri, Stream) | Adds a Stream, byte array, or 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. |
![]() | Add(Uri, String) | Adds a Stream, byte array, or 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. |
![]() | Add(Uri, array<Byte>, Int32, Int32) | Adds a Stream, byte array, or 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.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEntity | Maps a URI to an object that contains the actual resource. (Overrides XmlResolver::GetEntity(Uri, String, Type).) |
![]() | GetHashCode | Serves as a hash function for a particular type. (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 | Removes the data that corresponds to the URI from the XmlPreloadedResolver. |
![]() | ResolveUri | Returns true if the resolver’s GetEntity method can resolve the provided URI into an instance of the provided Type. (Overrides XmlResolver::ResolveUri(Uri, String).) |
![]() | SupportsType | Returns true if the resolver’s GetEntity method can resolve the provided URI into an instance of the provided Type. (Overrides XmlResolver::SupportsType(Uri, Type).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
