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
System.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

| Improve this Doc View Source

Response

Gets the response.

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

The response.

Methods

| Improve this Doc View Source

GetContentAsByteArrayAsync()

Asynchronously gets the content as a System.Byte array.

Declaration
Task<byte[]> GetContentAsByteArrayAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Byte[]>

The downloaded content as a byte array.

| Improve this Doc View Source

GetContentAsStreamAsync()

Asynchronously gets the content as a System.IO.Stream.

Declaration
Task<Stream> GetContentAsStreamAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>

The downloaded content as a stream.

| Improve this Doc View Source

GetContentAsStringAsync()

Asynchronously gets the content as System.String.

Declaration
Task<string> GetContentAsStringAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.String>

The downloaded content as a string.

  • Improve this Doc
  • View Source
In This Article
  • Properties
    • Response
  • Methods
    • GetContentAsByteArrayAsync()
    • GetContentAsStreamAsync()
    • GetContentAsStringAsync()
Back to top Generated by DocFX