Share via


RenderingConnection.LoadTextureAsync(LoadTextureOptions) 方法

定义

启动加载位于 Azure 存储中的纹理。

public:
 System::Threading::Tasks::Task<Microsoft::Azure::RemoteRendering::Texture ^> ^ LoadTextureAsync(Microsoft::Azure::RemoteRendering::LoadTextureOptions options);
public System.Threading.Tasks.Task<Microsoft.Azure.RemoteRendering.Texture> LoadTextureAsync (Microsoft.Azure.RemoteRendering.LoadTextureOptions options);
member this.LoadTextureAsync : Microsoft.Azure.RemoteRendering.LoadTextureOptions -> System.Threading.Tasks.Task<Microsoft.Azure.RemoteRendering.Texture>
Public Function LoadTextureAsync (options As LoadTextureOptions) As Task(Of Texture)

参数

options
LoadTextureOptions

用于加载纹理的参数。

返回

结果类型为“纹理”的任务。 任务将在计时周期内 Update() 完成。

注解

此调用会立即返回,并启动一个异步任务,该任务在加载纹理完成时返回。

AuthenticationFailed* 如果无法对请求进行身份验证,则会发生错误。 NoConnection* 如果未找到连接,则会发生错误。 InvalidType* 如果提供的文件类型不受支持,则会发生错误。 InvalidParentId* 如果设置的父 ID 无效,则会发生错误。

适用于

另请参阅