Share via


HostedFileClientExtensions Class

Definition

Extension methods for 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
Inheritance
HostedFileClientExtensions
Attributes

Methods

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

Downloads a file and returns its content as a buffered DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Downloads a file referenced by a HostedFileContent.

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

Downloads a file and saves it to a local path.

GetMetadata(IHostedFileClient)

Gets the HostedFileClientMetadata for this client.

GetRequiredService(IHostedFileClient, Type, Object)

Asks the IHostedFileClient for an object of the specified type serviceType and throws an exception if one isn't available.

GetRequiredService<TService>(IHostedFileClient, Object)

Asks the IHostedFileClient for an object of type TService and throws an exception if one isn't available.

GetService<TService>(IHostedFileClient, Object)

Gets a service of the specified type from the file client.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Uploads content from a DataContent.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Uploads a file from a local file path.

Applies to