XmlResolver.GetEntityAsync(Uri, String, Type) XmlResolver.GetEntityAsync(Uri, String, Type) XmlResolver.GetEntityAsync(Uri, String, Type) XmlResolver.GetEntityAsync(Uri, String, Type) Method

Definition

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

public:
 virtual System::Threading::Tasks::Task<System::Object ^> ^ GetEntityAsync(Uri ^ absoluteUri, System::String ^ role, Type ^ ofObjectToReturn);
public virtual System.Threading.Tasks.Task<object> GetEntityAsync (Uri absoluteUri, string role, Type ofObjectToReturn);
abstract member GetEntityAsync : Uri * string * Type -> System.Threading.Tasks.Task<obj>
override this.GetEntityAsync : Uri * string * Type -> System.Threading.Tasks.Task<obj>
Public Overridable Function GetEntityAsync (absoluteUri As Uri, role As String, ofObjectToReturn As Type) As Task(Of Object)

Parameters

absoluteUri
Uri Uri Uri Uri

The URI returned from ResolveUri(Uri, String).

role
String String String String

Currently not used.

ofObjectToReturn
Type Type Type Type

The type of object to return. The current version only returns Stream objects.

Returns

A stream object or null if a type other than stream is specified.

Remarks

This is the asynchronous version of GetEntity, with the same functionality. To use this method, you must set the Async flag to true.

Applies to

See also