Partager via


HostedFileClientExtensions Classe

Définition

Méthodes d’extension pour 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
Héritage
HostedFileClientExtensions
Attributs

Méthodes

Nom Description
DownloadAsDataContentAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Télécharge un fichier et retourne son contenu sous forme de mémoire tampon DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Télécharge un fichier référencé par un HostedFileContent.

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

Télécharge un fichier et l’enregistre dans un chemin d’accès local.

GetMetadata(IHostedFileClient)

Obtient le HostedFileClientMetadata client.

GetRequiredService(IHostedFileClient, Type, Object)

Demande l’objet IHostedFileClient du type serviceType spécifié et lève une exception si elle n’est pas disponible.

GetRequiredService<TService>(IHostedFileClient, Object)

Demande l’objet IHostedFileClient de type TService et lève une exception si un objet n’est pas disponible.

GetService<TService>(IHostedFileClient, Object)

Obtient un service du type spécifié à partir du client de fichiers.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Charge du contenu à partir d’un DataContent.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Charge un fichier à partir d’un chemin d’accès de fichier local.

S’applique à