XmlPreloadedResolver Class
Collapse the table of content
Expand the table of content

XmlPreloadedResolver Class

 

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

Namespace:   System.Xml.Resolvers
Assembly:  System.Xml (in System.Xml.dll)

System.Object
  System.Xml.XmlResolver
    System.Xml.Resolvers.XmlPreloadedResolver

public class XmlPreloadedResolver : XmlResolver

NameDescription
System_CAPS_pubmethodXmlPreloadedResolver()

Initializes a new instance of the XmlPreloadedResolver class.

System_CAPS_pubmethodXmlPreloadedResolver(XmlKnownDtds)

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

System_CAPS_pubmethodXmlPreloadedResolver(XmlResolver)

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

System_CAPS_pubmethodXmlPreloadedResolver(XmlResolver, XmlKnownDtds)

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

System_CAPS_pubmethodXmlPreloadedResolver(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.

NameDescription
System_CAPS_pubpropertyCredentials

Sets the credentials that are used to authenticate the underlying WebRequest.(Overrides XmlResolver.Credentials.)

System_CAPS_pubpropertyPreloadedUris

Gets a collection of preloaded URIs.

NameDescription
System_CAPS_pubmethodAdd(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.

System_CAPS_pubmethodAdd(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.

System_CAPS_pubmethodAdd(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.

System_CAPS_pubmethodAdd(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.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEntity(Uri, String, Type)

Maps a URI to an object that contains the actual resource.(Overrides XmlResolver.GetEntity(Uri, String, Type).)

System_CAPS_pubmethodGetEntityAsync(Uri, String, Type)

Asynchronously maps a URI to an object that contains the actual resource.(Overrides XmlResolver.GetEntityAsync(Uri, String, Type).)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(Uri)

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

System_CAPS_pubmethodResolveUri(Uri, String)

Resolves the absolute URI from the base and relative URIs.(Overrides XmlResolver.ResolveUri(Uri, String).)

System_CAPS_pubmethodSupportsType(Uri, Type)

Determines whether the resolver supports other Types than just Stream.(Overrides XmlResolver.SupportsType(Uri, Type).)

System_CAPS_pubmethodToString()

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.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft