Freigeben über


HostedFileClientExtensions Klasse

Definition

Erweiterungsmethoden für 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
Vererbung
HostedFileClientExtensions
Attribute

Methoden

Name Beschreibung
DownloadAsDataContentAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Lädt eine Datei herunter und gibt den Inhalt als gepuffert zurück DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Lädt eine Datei herunter, auf die von einer HostedFileContent.

DownloadToAsync(IHostedFileClient, String, String, HostedFileClientOptions, CancellationToken)

Lädt eine Datei herunter und speichert sie in einem lokalen Pfad.

GetMetadata(IHostedFileClient)

Ruft den HostedFileClientMetadata für diesen Client ab.

GetRequiredService(IHostedFileClient, Type, Object)

Fragt nach IHostedFileClient einem Objekt des angegebenen Typs serviceType und löst eine Ausnahme aus, wenn eine nicht verfügbar ist.

GetRequiredService<TService>(IHostedFileClient, Object)

Fragt nach IHostedFileClient einem Objekt vom Typ TService und löst eine Ausnahme aus, wenn ein Objekt nicht verfügbar ist.

GetService<TService>(IHostedFileClient, Object)

Ruft einen Dienst des angegebenen Typs vom Dateiclient ab.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Lädt Inhalte aus einem DataContent.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Lädt eine Datei aus einem lokalen Dateipfad hoch.

Gilt für: