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

Definition

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

public:
 override System::Threading::Tasks::Task<System::Object ^> ^ GetEntityAsync(Uri ^ absoluteUri, System::String ^ role, Type ^ ofObjectToReturn);
public override System.Threading.Tasks.Task<object> GetEntityAsync (Uri absoluteUri, string role, Type ofObjectToReturn);
override this.GetEntityAsync : Uri * string * Type -> System.Threading.Tasks.Task<obj>
Public Overrides 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

The stream returned by calling GetEntity on the underlying XmlResolver. If a type other than Stream is specified, the method returns null.

Applies to