Språk

HostedFileClientExtensions Klass

Definition

Tilläggsmetoder 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
Arv
HostedFileClientExtensions
Attribut

Metoder

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

Laddar ned en fil och returnerar dess innehåll som en buffrad DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Laddar ned en fil som refereras av en HostedFileContent.

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

Laddar ned en fil och sparar den i en lokal sökväg.

GetMetadata(IHostedFileClient)

HostedFileClientMetadata Hämtar för den här klienten.

GetRequiredService(IHostedFileClient, Type, Object)

Frågar efter IHostedFileClient ett objekt av den angivna typen serviceType och utlöser ett undantag om ett inte är tillgängligt.

GetRequiredService<TService>(IHostedFileClient, Object)

Frågar efter IHostedFileClient ett objekt av typen TService och utlöser ett undantag om ett inte är tillgängligt.

GetService<TService>(IHostedFileClient, Object)

Hämtar en tjänst av den angivna typen från filklienten.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Laddar upp innehåll från en DataContent.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Laddar upp en fil från en lokal filsökväg.

Gäller för