HostedFileClientExtensions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
的 IHostedFileClient擴展方法 。
public ref class HostedFileClientExtensions abstract sealed
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static class HostedFileClientExtensions
public static class HostedFileClientExtensions
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type HostedFileClientExtensions = class
type HostedFileClientExtensions = class
Public Module HostedFileClientExtensions
- 繼承
-
HostedFileClientExtensions
- 屬性
方法
| 名稱 | Description |
|---|---|
| DownloadAsDataContentAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken) |
下載檔案後,將內容以緩 DataContent衝區的形式回傳。 |
| DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken) |
下載一個由 HostedFileContent. |
| DownloadToAsync(IHostedFileClient, String, String, HostedFileClientOptions, CancellationToken) |
下載一個檔案並儲存到本地路徑。 |
| GetMetadata(IHostedFileClient) |
為這位客戶提供服務 HostedFileClientMetadata 。 |
| GetRequiredService(IHostedFileClient, Type, Object) |
會要求 需要 IHostedFileClient 指定類型的 |
| GetRequiredService<TService>(IHostedFileClient, Object) |
會請求 一個 IHostedFileClient 類型的 |
| GetService<TService>(IHostedFileClient, Object) |
從檔案用戶端取得指定類型的服務。 |
| UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken) |
DataContent從 . |
| UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken) |
從本地檔案路徑上傳檔案。 |