Taal

HostedFileClientExtensions Klas

Definitie

Extensiemethoden voor 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
Overname
HostedFileClientExtensions
Kenmerken

Methoden

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

Downloadt een bestand en retourneert de inhoud ervan als buffer DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Downloadt een bestand waarnaar wordt verwezen door een HostedFileContent.

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

Hiermee wordt een bestand gedownload en opgeslagen in een lokaal pad.

GetMetadata(IHostedFileClient)

Hiermee haalt u de HostedFileClientMetadata voor deze client op.

GetRequiredService(IHostedFileClient, Type, Object)

Vraagt om IHostedFileClient een object van het opgegeven type serviceType en genereert een uitzondering als deze niet beschikbaar is.

GetRequiredService<TService>(IHostedFileClient, Object)

Vraagt om IHostedFileClient een object van het type TService en genereert een uitzondering als deze niet beschikbaar is.

GetService<TService>(IHostedFileClient, Object)

Hiermee haalt u een service van het opgegeven type op van de bestandsclient.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Uploadt inhoud van een DataContent.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Uploadt een bestand vanuit een lokaal bestandspad.

Van toepassing op