XmlResolver.GetEntityAsync(Uri, String, Type) Méthode

Définition

Mappe de façon asynchrone un URI vers un objet contenant la ressource réelle.

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);
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)

Paramètres

absoluteUri
Uri

URI retourné par ResolveUri(Uri, String).

role
String

Pas utilisé pour l’instant.

ofObjectToReturn
Type

Type d'objet à retourner. La version actuelle ne retourne que des objets Stream.

Retours

Task<Object>

Objet de flux ou null si un type autre que stream est spécifié.

Remarques

Il s’agit de la version asynchrone de GetEntity, avec la même fonctionnalité. Pour utiliser cette méthode, vous devez définir l’indicateur Async truesur .

S’applique à

Voir aussi