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 SourceResponse
Gets the response.
Declaration
TResponse Response { get; }
Property Value
Type | Description |
---|---|
TResponse | The response. |
Methods
| Improve this Doc View SourceGetContentAsByteArrayAsync()
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. |
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. |
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. |