Share via


RenderingConnection.LoadTextureFromSasAsync(LoadTextureFromSasOptions) 方法

定義

使用 SAS 權杖來起始紋理的載入,以識別紋理。

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

參數

options
LoadTextureFromSasOptions

載入紋理的參數。

傳回

具有結果類型紋理的工作。 工作會在刻度期間 Update() 完成。

備註

此呼叫會立即傳回,並起始載入紋理完成時所傳回的非同步工作。

AuthenticationFailed* 如果無法驗證要求,就會發生錯誤。 NoConnection* 如果找不到連線,就會發生錯誤。 InvalidType* 如果不支援提供的檔案類型,就會發生錯誤。 InvalidParentId* 如果設定的父識別碼無效,就會發生錯誤。

適用於

另請參閱