DelegatingHostedFileClient Klass
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
En delegeringsfilklient som omsluter en inre IHostedFileClient.
public ref class DelegatingHostedFileClient : IDisposable, Microsoft::Extensions::AI::IHostedFileClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public class DelegatingHostedFileClient : IDisposable, Microsoft.Extensions.AI.IHostedFileClient
public class DelegatingHostedFileClient : IDisposable, Microsoft.Extensions.AI.IHostedFileClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type DelegatingHostedFileClient = class
interface IHostedFileClient
interface IDisposable
type DelegatingHostedFileClient = class
interface IHostedFileClient
interface IDisposable
Public Class DelegatingHostedFileClient
Implements IDisposable, IHostedFileClient
- Arv
-
DelegatingHostedFileClient
- Härledda
- Attribut
- Implementeringar
Kommentarer
Den här klassen ger en bas för att skapa filklienter som ändrar eller förbättrar beteendet för en annan IHostedFileClient. Som standard delegerar alla metoder till den inre klienten.
Konstruktorer
| Name | Description |
|---|---|
| DelegatingHostedFileClient(IHostedFileClient) |
Initierar en ny instans av DelegatingHostedFileClient klassen. |
Egenskaper
| Name | Description |
|---|---|
| InnerClient |
Hämtar den inre IHostedFileClient. |
Metoder
| Name | Description |
|---|---|
| DeleteAsync(String, HostedFileClientOptions, CancellationToken) |
Tar bort en fil från AI-tjänsten. |
| Dispose() |
Utför programdefinierade uppgifter som är associerade med att frigöra, frigöra eller återställa ohanterade resurser. |
| Dispose(Boolean) |
Bortser från instansen. |
| DownloadAsync(String, HostedFileClientOptions, CancellationToken) |
Laddar ned en fil från AI-tjänsten. |
| GetFileInfoAsync(String, HostedFileClientOptions, CancellationToken) |
Hämtar metadata om en fil. |
| GetService(Type, Object) |
Frågar efter IHostedFileClient ett objekt av den angivna typen |
| ListFilesAsync(HostedFileClientOptions, CancellationToken) |
Visar en lista över filer som är tillgängliga för den här klienten. |
| UploadAsync(Stream, String, String, HostedFileClientOptions, CancellationToken) |
Laddar upp en fil till AI-tjänsten. |