Class FilesAppRoutes
The routes for the Dropbox.
Inheritance
Inherited Members
Namespace: Dropbox.Api.Files.Routes
Assembly: Dropbox.Api.dll
Syntax
public class FilesAppRoutes
Methods
| Improve this Doc View SourceBeginGetThumbnailV2(PathOrLink, ThumbnailFormat, ThumbnailSize, ThumbnailMode, AsyncCallback, Object)
Begins an asynchronous send to the get thumbnail route.
Declaration
public IAsyncResult BeginGetThumbnailV2(PathOrLink resource, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
Path |
resource | Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. |
Thumbnail |
format | The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts. |
Thumbnail |
size | The size for the thumbnail image. |
Thumbnail |
mode | How to resize and crop the image to achieve the desired size. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
An object that represents the asynchronous send request. |
BeginGetThumbnailV2(ThumbnailV2Arg, AsyncCallback, Object)
Begins an asynchronous send to the get thumbnail route.
Declaration
public IAsyncResult BeginGetThumbnailV2(ThumbnailV2Arg thumbnailV2Arg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Thumbnail |
thumbnailV2Arg | The request parameters. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
An object that represents the asynchronous send request. |
BeginListFolder(ListFolderArg, AsyncCallback, Object)
Begins an asynchronous send to the list folder route.
Declaration
public IAsyncResult BeginListFolder(ListFolderArg listFolderArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
List |
listFolderArg | The request parameters. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
An object that represents the asynchronous send request. |
BeginListFolder(String, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<UInt32>, SharedLink, TemplateFilterBase, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the list folder route.
Declaration
public IAsyncResult BeginListFolder(string path, bool recursive = false, bool includeMediaInfo = false, bool includeDeleted = false, bool includeHasExplicitSharedMembers = false, bool includeMountedFolders = true, uint? limit = null, SharedLink sharedLink = null, TemplateFilterBase includePropertyGroups = null, bool includeNonDownloadableFiles = true, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file. |
System. |
recursive | If true, the list folder operation will be applied recursively to all subfolders and the response will contain contents of all subfolders. |
System. |
includeMediaInfo | If true, Media |
System. |
includeDeleted | If true, the results will include entries for files and folders that used to exist but were deleted. |
System. |
includeHasExplicitSharedMembers | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
System. |
includeMountedFolders | If true, the results will include entries under mounted folders which includes app folder, shared folder and team folder. |
System. |
limit | The maximum number of results to return per request. Note: This is an approximate number and there can be slightly more entries returned in some cases. |
Shared |
sharedLink | A shared link to list the contents of. If the link is password-protected, the password must be provided. If this field is present, Path will be relative to root of the shared link. Only non-recursive mode is supported for shared link. |
Template |
includePropertyGroups | If set to a valid list of template IDs, Property |
System. |
includeNonDownloadableFiles | If true, include files that are not downloadable, i.e. Google Docs. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
An object that represents the asynchronous send request. |
BeginListFolderContinue(ListFolderContinueArg, AsyncCallback, Object)
Begins an asynchronous send to the list folder continue route.
Declaration
public IAsyncResult BeginListFolderContinue(ListFolderContinueArg listFolderContinueArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
List |
listFolderContinueArg | The request parameters. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
An object that represents the asynchronous send request. |
BeginListFolderContinue(String, AsyncCallback, Object)
Begins an asynchronous send to the list folder continue route.
Declaration
public IAsyncResult BeginListFolderContinue(string cursor, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
cursor | The cursor returned by your last call to List |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
An object that represents the asynchronous send request. |
EndGetThumbnailV2(IAsyncResult)
Waits for the pending asynchronous send to the get thumbnail route to complete
Declaration
public IDownloadResponse<PreviewResult> EndGetThumbnailV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
IDownload |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Thumbnail |
EndListFolder(IAsyncResult)
Waits for the pending asynchronous send to the list folder route to complete
Declaration
public ListFolderResult EndListFolder(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
List |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a List |
EndListFolderContinue(IAsyncResult)
Waits for the pending asynchronous send to the list folder continue route to complete
Declaration
public ListFolderResult EndListFolderContinue(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
List |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a List |
GetThumbnailV2Async(PathOrLink, ThumbnailFormat, ThumbnailSize, ThumbnailMode)
Get a thumbnail for an image.
This method currently supports files with the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos that are larger than 20MB in size won't be converted to a thumbnail.
Declaration
public Task<IDownloadResponse<PreviewResult>> GetThumbnailV2Async(PathOrLink resource, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null)
Parameters
Type | Name | Description |
---|---|---|
Path |
resource | Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. |
Thumbnail |
format | The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts. |
Thumbnail |
size | The size for the thumbnail image. |
Thumbnail |
mode | How to resize and crop the image to achieve the desired size. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Thumbnail |
GetThumbnailV2Async(ThumbnailV2Arg)
Get a thumbnail for an image.
This method currently supports files with the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos that are larger than 20MB in size won't be converted to a thumbnail.
Declaration
public Task<IDownloadResponse<PreviewResult>> GetThumbnailV2Async(ThumbnailV2Arg thumbnailV2Arg)
Parameters
Type | Name | Description |
---|---|---|
Thumbnail |
thumbnailV2Arg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Thumbnail |
ListFolderAsync(ListFolderArg)
Starts returning the contents of a folder. If the result's Hastrue
, call
List
If you're using Recursive set
to true
to keep a local cache of the contents of a Dropbox account, iterate
through each entry in order and process them as follows to keep your local state in
sync:
For each File
For each Folder
For each Deleted
Note: Rate
Declaration
public Task<ListFolderResult> ListFolderAsync(ListFolderArg listFolderArg)
Parameters
Type | Name | Description |
---|---|---|
List |
listFolderArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a List |
ListFolderAsync(String, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<UInt32>, SharedLink, TemplateFilterBase, Boolean)
Starts returning the contents of a folder. If the result's Hastrue
, call
List
If you're using Recursive set
to true
to keep a local cache of the contents of a Dropbox account, iterate
through each entry in order and process them as follows to keep your local state in
sync:
For each File
For each Folder
For each Deleted
Note: Rate
Declaration
public Task<ListFolderResult> ListFolderAsync(string path, bool recursive = false, bool includeMediaInfo = false, bool includeDeleted = false, bool includeHasExplicitSharedMembers = false, bool includeMountedFolders = true, uint? limit = null, SharedLink sharedLink = null, TemplateFilterBase includePropertyGroups = null, bool includeNonDownloadableFiles = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file. |
System. |
recursive | If true, the list folder operation will be applied recursively to all subfolders and the response will contain contents of all subfolders. |
System. |
includeMediaInfo | If true, Media |
System. |
includeDeleted | If true, the results will include entries for files and folders that used to exist but were deleted. |
System. |
includeHasExplicitSharedMembers | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
System. |
includeMountedFolders | If true, the results will include entries under mounted folders which includes app folder, shared folder and team folder. |
System. |
limit | The maximum number of results to return per request. Note: This is an approximate number and there can be slightly more entries returned in some cases. |
Shared |
sharedLink | A shared link to list the contents of. If the link is password-protected, the password must be provided. If this field is present, Path will be relative to root of the shared link. Only non-recursive mode is supported for shared link. |
Template |
includePropertyGroups | If set to a valid list of template IDs, Property |
System. |
includeNonDownloadableFiles | If true, include files that are not downloadable, i.e. Google Docs. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a List |
ListFolderContinueAsync(ListFolderContinueArg)
Once a cursor has been retrieved from List
Declaration
public Task<ListFolderResult> ListFolderContinueAsync(ListFolderContinueArg listFolderContinueArg)
Parameters
Type | Name | Description |
---|---|---|
List |
listFolderContinueArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a List |
ListFolderContinueAsync(String)
Once a cursor has been retrieved from List
Declaration
public Task<ListFolderResult> ListFolderContinueAsync(string cursor)
Parameters
Type | Name | Description |
---|---|---|
System. |
cursor | The cursor returned by your last call to List |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a List |