다음을 통해 공유


HostedFileClientExtensions 클래스

정의

에 대한 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
상속
HostedFileClientExtensions
특성

메서드

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

파일을 다운로드하고 해당 콘텐츠를 버퍼링된 DataContent파일로 반환합니다.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

에서 참조하는 파일을 다운로드합니다 HostedFileContent.

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

파일을 다운로드하고 로컬 경로에 저장합니다.

GetMetadata(IHostedFileClient)

이 클라이언트에 HostedFileClientMetadata 대한 값을 가져옵니다.

GetRequiredService(IHostedFileClient, Type, Object)

IHostedFileClient 지정된 형식 serviceType 의 개체를 요청하고 사용할 수 없는 경우 예외를 throw합니다.

GetRequiredService<TService>(IHostedFileClient, Object)

형식 IHostedFileClientTService 개체를 요청하고 사용할 수 없는 경우 예외를 throw합니다.

GetService<TService>(IHostedFileClient, Object)

파일 클라이언트에서 지정된 형식의 서비스를 가져옵니다.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

에서 DataContent콘텐츠를 업로드합니다.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

로컬 파일 경로에서 파일을 업로드합니다.

적용 대상