XmlPreloadedResolver::GetEntityAsync Method (Uri^, String^, Type^)

.NET Framework (current version)
 

Asynchronously maps a URI to an object that contains the actual resource.

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

public:
virtual Task<Object^>^ GetEntityAsync(
	Uri^ absoluteUri,
	String^ role,
	Type^ ofObjectToReturn
) override

Parameters

absoluteUri
Type: System::Uri^

The URI returned from ResolveUri.

role
Type: System::String^

The current version of the .NET Framework for Silverlight does not use this parameter when resolving URIs. This parameter is provided for future extensibility purposes. For example, this parameter can be mapped to the xlink:role and used as an implementation-specific argument in other scenarios.

ofObjectToReturn
Type: System::Type^

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 SupportsType method to determine whether a certain Type is supported by this resolver.

Return Value

Type: System.Threading.Tasks::Task<Object^>^

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

.NET Framework
Available since 4.5
Return to top
Show: