Compartir a través de


HostedFileClientExtensions Clase

Definición

Métodos de extensión para 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
Herencia
HostedFileClientExtensions
Atributos

Métodos

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

Descarga un archivo y devuelve su contenido como un almacenado en búfer DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Descarga un archivo al que hace referencia un HostedFileContent.

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

Descarga un archivo y lo guarda en una ruta de acceso local.

GetMetadata(IHostedFileClient)

Obtiene para HostedFileClientMetadata este cliente.

GetRequiredService(IHostedFileClient, Type, Object)

Solicita un IHostedFileClient objeto del tipo serviceType especificado y produce una excepción si no está disponible.

GetRequiredService<TService>(IHostedFileClient, Object)

Pide al IHostedFileClient objeto de tipo TService y produce una excepción si no está disponible.

GetService<TService>(IHostedFileClient, Object)

Obtiene un servicio del tipo especificado del cliente de archivos.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Carga el contenido de un DataContentobjeto .

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Carga un archivo desde una ruta de acceso de archivo local.

Se aplica a