System::Xml::Resolvers::XmlPreloadedResolver class

XmlPreloadedResolver class

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

class XmlPreloadedResolver : public System::Xml::XmlResolver

Methods

MethodDescription
Add(const SharedPtr<Uri>&, const ArrayPtr<uint8_t>&)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(const SharedPtr<Uri>&, const ArrayPtr<uint8_t>&, int32_t, int32_t)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(const SharedPtr<Uri>&, const SharedPtr<IO::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(const SharedPtr<Uri>&, const 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.
get_PreloadedUris()Returns a collection of preloaded URIs.
GetEntity(SharedPtr<Uri>, String, const TypeInfo&) overrideMaps a URI to an object that contains the actual resource.
Remove(const SharedPtr<Uri>&)Removes the data that corresponds to the URI from the XmlPreloadedResolver.
ResolveUri(SharedPtr<Uri>, String) overrideResolves the absolute URI from the base and relative URIs.
set_Credentials(SharedPtr<Net::ICredentials>) overrideSets the credentials that are used to authenticate the underlying Net::WebRequest.
SupportsType(SharedPtr<Uri>, const TypeInfo&) overrideDetermines whether the resolver supports other Types than just Stream.
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(const SharedPtr<XmlResolver>&)Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver.
XmlPreloadedResolver(const SharedPtr<XmlResolver>&, XmlKnownDtds)Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver and preloaded well-known DTDs.
XmlPreloadedResolver(const SharedPtr<XmlResolver>&, XmlKnownDtds, const SharedPtr<Collections::Generic::IEqualityComparer<SharedPtr<Uri>>>&)Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver, preloaded well-known DTDs, and URI equality comparer.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also