System::Xml::XmlSecureResolver class

XmlSecureResolver class

Helps to secure another implementation of XmlResolver by wrapping the XmlResolver object and restricting the resources that the underlying XmlResolver has access to.

class XmlSecureResolver : public System::Xml::XmlResolver

Methods

MethodDescription
GetEntity(SharedPtr<Uri>, String, const TypeInfo&) overrideMaps a URI to an object that contains the actual resource.
ResolveUri(SharedPtr<Uri>, String) overrideResolves the absolute URI from the base and relative URIs by calling ResolveUri on the underlying XmlResolver.
set_Credentials(SharedPtr<Net::ICredentials>) overrideSets credentials used to authenticate web requests.
XmlSecureResolver(const SharedPtr<XmlResolver>&, const String&)Initializes a new instance of the XmlSecureResolver class with the XmlResolver and URL provided.

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