Dropbox .NET SDK
Show / Hide Table of Contents

Interface IDownloadResponse<TResponse>

Used to encapsulate both the response object and the response body from a download operation.

Inherited Members
IDisposable.Dispose()
Namespace: Dropbox.Api.Stone
Assembly: Dropbox.Api.dll
Syntax
public interface IDownloadResponse<TResponse> : IDisposable
Type Parameters
Name Description
TResponse

The type of the response.

Properties

View Source

Response

Gets the response.

Declaration
TResponse Response { get; }
Property Value
Type Description
TResponse

The response.

Methods

View Source

GetContentAsByteArrayAsync()

Asynchronously gets the content as a byte array.

Declaration
Task<byte[]> GetContentAsByteArrayAsync()
Returns
Type Description
Task<byte[]>

The downloaded content as a byte array.

View Source

GetContentAsStreamAsync()

Asynchronously gets the content as a Stream.

Declaration
Task<Stream> GetContentAsStreamAsync()
Returns
Type Description
Task<Stream>

The downloaded content as a stream.

View Source

GetContentAsStringAsync()

Asynchronously gets the content as string.

Declaration
Task<string> GetContentAsStringAsync()
Returns
Type Description
Task<string>

The downloaded content as a string.

  • View Source
In this article
Back to top Dropbox .NET SDK