XmlUrlResolver.GetEntityAsync(Uri, String, Type) 方法

定义

将 URI 异步映射到包含实际资源的对象。

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

参数

absoluteUri
Uri

ResolveUri(Uri, String) 返回的 URI。

role
String

当前未使用。

ofObjectToReturn
Type

要返回的对象的类型。 当前实现只返回 Stream 对象。

返回

Task<Object>

流对象;如果指定了流以外的类型,则为 null

适用于