GetEntity()

XmlPreloadedResolver::GetEntity(SharedPtr<Uri>, String, const TypeInfo&) method

Maps a URI to an object that contains the actual resource.

SharedPtr<Object> System::Xml::Resolvers::XmlPreloadedResolver::GetEntity(SharedPtr<Uri> absoluteUri, String role, const TypeInfo &ofObjectToReturn) override

Arguments

ParameterTypeDescription
absoluteUriSharedPtr<Uri>The URI returned from XmlResolver::ResolveUri(SharedPtr,String) call.
roleStringCurrently not used.
ofObjectToReturnconst TypeInfo&The type of object to return. The XmlPreloadedResolver supports Stream objects and TextReader objects for URIs that were added as String. If the requested type is not supported by the resolver, an exception will be thrown. Use the XmlPreloadedResolver::SupportsType(SharedPtr,TypeInfo) method to determine whether a certain Type is supported by this resolver.

Return Value

A Stream or TextReader object that corresponds to the actual source.

See Also