Class FilesUserRoutes
The routes for the Dropbox.
Inheritance
Inherited Members
Namespace: Dropbox.Api.Files.Routes
Assembly: Dropbox.Api.dll
Syntax
public class FilesUserRoutes
Methods
| Improve this Doc View SourceAlphaGetMetadataAsync(AlphaGetMetadataArg)
Returns the metadata for a file or folder. This is an alpha endpoint compatible with the properties API.
Note: Metadata for the root folder is unsupported.
Declaration
[Obsolete("This function is deprecated, please use GetMetadataAsync instead.")]
public Task<Metadata> AlphaGetMetadataAsync(AlphaGetMetadataArg alphaGetMetadataArg)
Parameters
Type | Name | Description |
---|---|---|
Alpha |
alphaGetMetadataArg | 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 Alpha |
AlphaGetMetadataAsync(String, Boolean, Boolean, Boolean, TemplateFilterBase, IEnumerable<String>)
Returns the metadata for a file or folder. This is an alpha endpoint compatible with the properties API.
Note: Metadata for the root folder is unsupported.
Declaration
[Obsolete("This function is deprecated, please use GetMetadataAsync instead.")]
public Task<Metadata> AlphaGetMetadataAsync(string path, bool includeMediaInfo = false, bool includeDeleted = false, bool includeHasExplicitSharedMembers = false, TemplateFilterBase includePropertyGroups = null, IEnumerable<string> includePropertyTemplates = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of a file or folder on Dropbox. |
System. |
includeMediaInfo | If true, Media |
System. |
includeDeleted | If true, Deleted |
System. |
includeHasExplicitSharedMembers | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
Template |
includePropertyGroups | If set to a valid list of template IDs, Property |
System. |
includePropertyTemplates | If set to a valid list of template IDs, Property |
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 Alpha |
AlphaUploadAsync(UploadArg, Stream)
Create a new file with the contents provided in the request. Note that the behavior of this alpha endpoint is unstable and subject to change.
Do not use this to upload a file larger than 150 MB. Instead, create an
upload session with Upload
Declaration
[Obsolete("This function is deprecated, please use UploadAsync instead.")]
public Task<FileMetadata> AlphaUploadAsync(UploadArg uploadArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadArg | The request parameters |
System. |
body | The content to upload. |
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 Upload |
AlphaUploadAsync(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean, String, Stream)
Create a new file with the contents provided in the request. Note that the behavior of this alpha endpoint is unstable and subject to change.
Do not use this to upload a file larger than 150 MB. Instead, create an
upload session with Upload
Declaration
[Obsolete("This function is deprecated, please use UploadAsync instead.")]
public Task<FileMetadata> AlphaUploadAsync(string path, WriteMode mode = null, bool autorename = false, DateTime? clientModified = null, bool mute = false, IEnumerable<PropertyGroup> propertyGroups = null, bool strictConflict = false, string contentHash = null, Stream body = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to save the file. |
Write |
mode | Selects what to do if the file already exists. |
System. |
autorename | If there's a conflict, as determined by |
System. |
clientModified | The value to store as the |
System. |
mute | Normally, users are made aware of any file modifications in
their Dropbox account via notifications in the client software. If |
System. |
propertyGroups | List of custom properties to add to file. |
System. |
strictConflict | Be more strict about how each Write |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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 Upload |
BeginAlphaGetMetadata(AlphaGetMetadataArg, AsyncCallback, Object)
Begins an asynchronous send to the alpha get metadata route.
Declaration
[Obsolete("This function is deprecated, please use BeginGetMetadata instead.")]
public IAsyncResult BeginAlphaGetMetadata(AlphaGetMetadataArg alphaGetMetadataArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Alpha |
alphaGetMetadataArg | 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. |
BeginAlphaGetMetadata(String, Boolean, Boolean, Boolean, TemplateFilterBase, IEnumerable<String>, AsyncCallback, Object)
Begins an asynchronous send to the alpha get metadata route.
Declaration
[Obsolete("This function is deprecated, please use BeginGetMetadata instead.")]
public IAsyncResult BeginAlphaGetMetadata(string path, bool includeMediaInfo = false, bool includeDeleted = false, bool includeHasExplicitSharedMembers = false, TemplateFilterBase includePropertyGroups = null, IEnumerable<string> includePropertyTemplates = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of a file or folder on Dropbox. |
System. |
includeMediaInfo | If true, Media |
System. |
includeDeleted | If true, Deleted |
System. |
includeHasExplicitSharedMembers | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
Template |
includePropertyGroups | If set to a valid list of template IDs, Property |
System. |
includePropertyTemplates | If set to a valid list of template IDs, Property |
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. |
BeginAlphaUpload(UploadArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the alpha upload route.
Declaration
[Obsolete("This function is deprecated, please use BeginUpload instead.")]
public IAsyncResult BeginAlphaUpload(UploadArg uploadArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginAlphaUpload(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean, String, Stream, AsyncCallback, Object)
Begins an asynchronous send to the alpha upload route.
Declaration
[Obsolete("This function is deprecated, please use BeginUpload instead.")]
public IAsyncResult BeginAlphaUpload(string path, WriteMode mode = null, bool autorename = false, DateTime? clientModified = null, bool mute = false, IEnumerable<PropertyGroup> propertyGroups = null, bool strictConflict = false, string contentHash = null, Stream body = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to save the file. |
Write |
mode | Selects what to do if the file already exists. |
System. |
autorename | If there's a conflict, as determined by |
System. |
clientModified | The value to store as the |
System. |
mute | Normally, users are made aware of any file modifications in
their Dropbox account via notifications in the client software. If |
System. |
propertyGroups | List of custom properties to add to file. |
System. |
strictConflict | Be more strict about how each Write |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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. |
BeginCopy(RelocationArg, AsyncCallback, Object)
Begins an asynchronous send to the copy route.
Declaration
[Obsolete("This function is deprecated, please use BeginCopyV2 instead.")]
public IAsyncResult BeginCopy(RelocationArg relocationArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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. |
BeginCopy(String, String, Boolean, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the copy route.
Declaration
[Obsolete("This function is deprecated, please use BeginCopyV2 instead.")]
public IAsyncResult BeginCopy(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginCopyBatch(RelocationBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the copy batch route.
Declaration
[Obsolete("This function is deprecated, please use BeginCopyBatchV2 instead.")]
public IAsyncResult BeginCopyBatch(RelocationBatchArg relocationBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationBatchArg | 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. |
BeginCopyBatch(IEnumerable<RelocationPath>, Boolean, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the copy batch route.
Declaration
[Obsolete("This function is deprecated, please use BeginCopyBatchV2 instead.")]
public IAsyncResult BeginCopyBatch(IEnumerable<RelocationPath> entries, bool autorename = false, bool allowSharedFolder = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginCopyBatchCheck(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the copy batch check route.
Declaration
[Obsolete("This function is deprecated, please use BeginCopyBatchCheckV2 instead.")]
public IAsyncResult BeginCopyBatchCheck(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginCopyBatchCheck(String, AsyncCallback, Object)
Begins an asynchronous send to the copy batch check route.
Declaration
[Obsolete("This function is deprecated, please use BeginCopyBatchCheckV2 instead.")]
public IAsyncResult BeginCopyBatchCheck(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginCopyBatchCheckV2(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the copy batch check route.
Declaration
public IAsyncResult BeginCopyBatchCheckV2(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginCopyBatchCheckV2(String, AsyncCallback, Object)
Begins an asynchronous send to the copy batch check route.
Declaration
public IAsyncResult BeginCopyBatchCheckV2(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginCopyBatchV2(RelocationBatchArgBase, AsyncCallback, Object)
Begins an asynchronous send to the copy batch route.
Declaration
public IAsyncResult BeginCopyBatchV2(RelocationBatchArgBase relocationBatchArgBase, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationBatchArgBase | 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. |
BeginCopyBatchV2(IEnumerable<RelocationPath>, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the copy batch route.
Declaration
public IAsyncResult BeginCopyBatchV2(IEnumerable<RelocationPath> entries, bool autorename = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
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. |
BeginCopyReferenceGet(GetCopyReferenceArg, AsyncCallback, Object)
Begins an asynchronous send to the copy reference get route.
Declaration
public IAsyncResult BeginCopyReferenceGet(GetCopyReferenceArg getCopyReferenceArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getCopyReferenceArg | 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. |
BeginCopyReferenceGet(String, AsyncCallback, Object)
Begins an asynchronous send to the copy reference get route.
Declaration
public IAsyncResult BeginCopyReferenceGet(string path, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the file or folder you want to get a copy reference to. |
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. |
BeginCopyReferenceSave(SaveCopyReferenceArg, AsyncCallback, Object)
Begins an asynchronous send to the copy reference save route.
Declaration
public IAsyncResult BeginCopyReferenceSave(SaveCopyReferenceArg saveCopyReferenceArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Save |
saveCopyReferenceArg | 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. |
BeginCopyReferenceSave(String, String, AsyncCallback, Object)
Begins an asynchronous send to the copy reference save route.
Declaration
public IAsyncResult BeginCopyReferenceSave(string copyReference, string path, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
copyReference | A copy reference returned by Copy |
System. |
path | Path in the user's Dropbox that is the destination. |
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. |
BeginCopyV2(RelocationArg, AsyncCallback, Object)
Begins an asynchronous send to the copy route.
Declaration
public IAsyncResult BeginCopyV2(RelocationArg relocationArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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. |
BeginCopyV2(String, String, Boolean, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the copy route.
Declaration
public IAsyncResult BeginCopyV2(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginCreateFolder(CreateFolderArg, AsyncCallback, Object)
Begins an asynchronous send to the create folder route.
Declaration
[Obsolete("This function is deprecated, please use BeginCreateFolderV2 instead.")]
public IAsyncResult BeginCreateFolder(CreateFolderArg createFolderArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Create |
createFolderArg | 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. |
BeginCreateFolder(String, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the create folder route.
Declaration
[Obsolete("This function is deprecated, please use BeginCreateFolderV2 instead.")]
public IAsyncResult BeginCreateFolder(string path, bool autorename = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to create. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. |
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. |
BeginCreateFolderBatch(CreateFolderBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the create folder batch route.
Declaration
public IAsyncResult BeginCreateFolderBatch(CreateFolderBatchArg createFolderBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Create |
createFolderBatchArg | 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. |
BeginCreateFolderBatch(IEnumerable<String>, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the create folder batch route.
Declaration
public IAsyncResult BeginCreateFolderBatch(IEnumerable<string> paths, bool autorename = false, bool forceAsync = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
paths | List of paths to be created in the user's Dropbox. Duplicate path arguments in the batch are considered only once. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. |
System. |
forceAsync | Whether to force the create to happen asynchronously. |
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. |
BeginCreateFolderBatchCheck(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the create folder batch check route.
Declaration
public IAsyncResult BeginCreateFolderBatchCheck(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginCreateFolderBatchCheck(String, AsyncCallback, Object)
Begins an asynchronous send to the create folder batch check route.
Declaration
public IAsyncResult BeginCreateFolderBatchCheck(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginCreateFolderV2(CreateFolderArg, AsyncCallback, Object)
Begins an asynchronous send to the create folder route.
Declaration
public IAsyncResult BeginCreateFolderV2(CreateFolderArg createFolderArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Create |
createFolderArg | 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. |
BeginCreateFolderV2(String, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the create folder route.
Declaration
public IAsyncResult BeginCreateFolderV2(string path, bool autorename = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to create. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. |
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. |
BeginDelete(DeleteArg, AsyncCallback, Object)
Begins an asynchronous send to the delete route.
Declaration
[Obsolete("This function is deprecated, please use BeginDeleteV2 instead.")]
public IAsyncResult BeginDelete(DeleteArg deleteArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteArg | 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. |
BeginDelete(String, String, AsyncCallback, Object)
Begins an asynchronous send to the delete route.
Declaration
[Obsolete("This function is deprecated, please use BeginDeleteV2 instead.")]
public IAsyncResult BeginDelete(string path, string parentRev = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to delete. |
System. |
parentRev | Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. |
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. |
BeginDeleteBatch(DeleteBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the delete batch route.
Declaration
public IAsyncResult BeginDeleteBatch(DeleteBatchArg deleteBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteBatchArg | 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. |
BeginDeleteBatch(IEnumerable<DeleteArg>, AsyncCallback, Object)
Begins an asynchronous send to the delete batch route.
Declaration
public IAsyncResult BeginDeleteBatch(IEnumerable<DeleteArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | The entries |
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. |
BeginDeleteBatchCheck(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the delete batch check route.
Declaration
public IAsyncResult BeginDeleteBatchCheck(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginDeleteBatchCheck(String, AsyncCallback, Object)
Begins an asynchronous send to the delete batch check route.
Declaration
public IAsyncResult BeginDeleteBatchCheck(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginDeleteV2(DeleteArg, AsyncCallback, Object)
Begins an asynchronous send to the delete route.
Declaration
public IAsyncResult BeginDeleteV2(DeleteArg deleteArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteArg | 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. |
BeginDeleteV2(String, String, AsyncCallback, Object)
Begins an asynchronous send to the delete route.
Declaration
public IAsyncResult BeginDeleteV2(string path, string parentRev = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to delete. |
System. |
parentRev | Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. |
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. |
BeginDownload(DownloadArg, AsyncCallback, Object)
Begins an asynchronous send to the download route.
Declaration
public IAsyncResult BeginDownload(DownloadArg downloadArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Download |
downloadArg | 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. |
BeginDownload(String, String, AsyncCallback, Object)
Begins an asynchronous send to the download route.
Declaration
public IAsyncResult BeginDownload(string path, string rev = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the file to download. |
System. |
rev | Please specify revision in |
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. |
BeginDownloadZip(DownloadZipArg, AsyncCallback, Object)
Begins an asynchronous send to the download zip route.
Declaration
public IAsyncResult BeginDownloadZip(DownloadZipArg downloadZipArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Download |
downloadZipArg | 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. |
BeginDownloadZip(String, AsyncCallback, Object)
Begins an asynchronous send to the download zip route.
Declaration
public IAsyncResult BeginDownloadZip(string path, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the folder to download. |
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. |
BeginExport(ExportArg, AsyncCallback, Object)
Begins an asynchronous send to the export route.
Declaration
public IAsyncResult BeginExport(ExportArg exportArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Export |
exportArg | 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. |
BeginExport(String, String, AsyncCallback, Object)
Begins an asynchronous send to the export route.
Declaration
public IAsyncResult BeginExport(string path, string exportFormat = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the file to be exported. |
System. |
exportFormat | The file format to which the file should be exported.
This must be one of the formats listed in the file's export_options returned by
Get |
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. |
BeginGetFileLockBatch(LockFileBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the get file lock batch route.
Declaration
public IAsyncResult BeginGetFileLockBatch(LockFileBatchArg lockFileBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Lock |
lockFileBatchArg | 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. |
BeginGetFileLockBatch(IEnumerable<LockFileArg>, AsyncCallback, Object)
Begins an asynchronous send to the get file lock batch route.
Declaration
public IAsyncResult BeginGetFileLockBatch(IEnumerable<LockFileArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of 'entries'. Each 'entry' contains a path of the file which will be locked or queried. Duplicate path arguments in the batch are considered only once. |
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. |
BeginGetMetadata(GetMetadataArg, AsyncCallback, Object)
Begins an asynchronous send to the get metadata route.
Declaration
public IAsyncResult BeginGetMetadata(GetMetadataArg getMetadataArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getMetadataArg | 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. |
BeginGetMetadata(String, Boolean, Boolean, Boolean, TemplateFilterBase, AsyncCallback, Object)
Begins an asynchronous send to the get metadata route.
Declaration
public IAsyncResult BeginGetMetadata(string path, bool includeMediaInfo = false, bool includeDeleted = false, bool includeHasExplicitSharedMembers = false, TemplateFilterBase includePropertyGroups = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of a file or folder on Dropbox. |
System. |
includeMediaInfo | If true, Media |
System. |
includeDeleted | If true, Deleted |
System. |
includeHasExplicitSharedMembers | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
Template |
includePropertyGroups | If set to a valid list of template IDs, Property |
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. |
BeginGetPreview(PreviewArg, AsyncCallback, Object)
Begins an asynchronous send to the get preview route.
Declaration
public IAsyncResult BeginGetPreview(PreviewArg previewArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Preview |
previewArg | 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. |
BeginGetPreview(String, String, AsyncCallback, Object)
Begins an asynchronous send to the get preview route.
Declaration
public IAsyncResult BeginGetPreview(string path, string rev = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the file to preview. |
System. |
rev | Please specify revision in |
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. |
BeginGetTemporaryLink(GetTemporaryLinkArg, AsyncCallback, Object)
Begins an asynchronous send to the get temporary link route.
Declaration
public IAsyncResult BeginGetTemporaryLink(GetTemporaryLinkArg getTemporaryLinkArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTemporaryLinkArg | 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. |
BeginGetTemporaryLink(String, AsyncCallback, Object)
Begins an asynchronous send to the get temporary link route.
Declaration
public IAsyncResult BeginGetTemporaryLink(string path, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the file you want a temporary link to. |
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. |
BeginGetTemporaryUploadLink(CommitInfo, Double, AsyncCallback, Object)
Begins an asynchronous send to the get temporary upload link route.
Declaration
public IAsyncResult BeginGetTemporaryUploadLink(CommitInfo commitInfo, double duration = 14400, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
Commit |
commitInfo | Contains the path and other optional modifiers for the
future upload commit. Equivalent to the parameters provided to Upload |
System. |
duration | How long before this link expires, in seconds. Attempting to start an upload with this link longer than this period of time after link creation will result in an error. |
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. |
BeginGetTemporaryUploadLink(GetTemporaryUploadLinkArg, AsyncCallback, Object)
Begins an asynchronous send to the get temporary upload link route.
Declaration
public IAsyncResult BeginGetTemporaryUploadLink(GetTemporaryUploadLinkArg getTemporaryUploadLinkArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTemporaryUploadLinkArg | 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. |
BeginGetThumbnail(ThumbnailArg, AsyncCallback, Object)
Begins an asynchronous send to the get thumbnail route.
Declaration
public IAsyncResult BeginGetThumbnail(ThumbnailArg thumbnailArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Thumbnail |
thumbnailArg | 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. |
BeginGetThumbnail(String, ThumbnailFormat, ThumbnailSize, ThumbnailMode, AsyncCallback, Object)
Begins an asynchronous send to the get thumbnail route.
Declaration
public IAsyncResult BeginGetThumbnail(string path, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the image file you want to thumbnail. |
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. |
BeginGetThumbnailBatch(GetThumbnailBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the get thumbnail batch route.
Declaration
public IAsyncResult BeginGetThumbnailBatch(GetThumbnailBatchArg getThumbnailBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getThumbnailBatchArg | 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. |
BeginGetThumbnailBatch(IEnumerable<ThumbnailArg>, AsyncCallback, Object)
Begins an asynchronous send to the get thumbnail batch route.
Declaration
public IAsyncResult BeginGetThumbnailBatch(IEnumerable<ThumbnailArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of files to get thumbnails. |
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(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. |
BeginListFolderGetLatestCursor(ListFolderArg, AsyncCallback, Object)
Begins an asynchronous send to the list folder get latest cursor route.
Declaration
public IAsyncResult BeginListFolderGetLatestCursor(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. |
BeginListFolderGetLatestCursor(String, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<UInt32>, SharedLink, TemplateFilterBase, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the list folder get latest cursor route.
Declaration
public IAsyncResult BeginListFolderGetLatestCursor(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. |
BeginListFolderLongpoll(ListFolderLongpollArg, AsyncCallback, Object)
Begins an asynchronous send to the list folder longpoll route.
Declaration
public IAsyncResult BeginListFolderLongpoll(ListFolderLongpollArg listFolderLongpollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
List |
listFolderLongpollArg | 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. |
BeginListFolderLongpoll(String, UInt64, AsyncCallback, Object)
Begins an asynchronous send to the list folder longpoll route.
Declaration
public IAsyncResult BeginListFolderLongpoll(string cursor, ulong timeout = 30UL, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
cursor | A cursor as returned by List |
System. |
timeout | A timeout in seconds. The request will block for at most this length of time, plus up to 90 seconds of random jitter added to avoid the thundering herd problem. Care should be taken when using this parameter, as some network infrastructure does not support long timeouts. |
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. |
BeginListRevisions(ListRevisionsArg, AsyncCallback, Object)
Begins an asynchronous send to the list revisions route.
Declaration
public IAsyncResult BeginListRevisions(ListRevisionsArg listRevisionsArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
List |
listRevisionsArg | 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. |
BeginListRevisions(String, ListRevisionsMode, UInt64, AsyncCallback, Object)
Begins an asynchronous send to the list revisions route.
Declaration
public IAsyncResult BeginListRevisions(string path, ListRevisionsMode mode = null, ulong limit = 10UL, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the file you want to see the revisions of. |
List |
mode | Determines the behavior of the API in listing the revisions for a given file path or id. |
System. |
limit | The maximum number of revision entries returned. |
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. |
BeginLockFileBatch(LockFileBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the lock file batch route.
Declaration
public IAsyncResult BeginLockFileBatch(LockFileBatchArg lockFileBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Lock |
lockFileBatchArg | 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. |
BeginLockFileBatch(IEnumerable<LockFileArg>, AsyncCallback, Object)
Begins an asynchronous send to the lock file batch route.
Declaration
public IAsyncResult BeginLockFileBatch(IEnumerable<LockFileArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of 'entries'. Each 'entry' contains a path of the file which will be locked or queried. Duplicate path arguments in the batch are considered only once. |
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. |
BeginMove(RelocationArg, AsyncCallback, Object)
Begins an asynchronous send to the move route.
Declaration
[Obsolete("This function is deprecated, please use BeginMoveV2 instead.")]
public IAsyncResult BeginMove(RelocationArg relocationArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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. |
BeginMove(String, String, Boolean, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the move route.
Declaration
[Obsolete("This function is deprecated, please use BeginMoveV2 instead.")]
public IAsyncResult BeginMove(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginMoveBatch(RelocationBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the move batch route.
Declaration
[Obsolete("This function is deprecated, please use BeginMoveBatchV2 instead.")]
public IAsyncResult BeginMoveBatch(RelocationBatchArg relocationBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationBatchArg | 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. |
BeginMoveBatch(IEnumerable<RelocationPath>, Boolean, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the move batch route.
Declaration
[Obsolete("This function is deprecated, please use BeginMoveBatchV2 instead.")]
public IAsyncResult BeginMoveBatch(IEnumerable<RelocationPath> entries, bool autorename = false, bool allowSharedFolder = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginMoveBatchCheck(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the move batch check route.
Declaration
[Obsolete("This function is deprecated, please use BeginMoveBatchCheckV2 instead.")]
public IAsyncResult BeginMoveBatchCheck(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginMoveBatchCheck(String, AsyncCallback, Object)
Begins an asynchronous send to the move batch check route.
Declaration
[Obsolete("This function is deprecated, please use BeginMoveBatchCheckV2 instead.")]
public IAsyncResult BeginMoveBatchCheck(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginMoveBatchCheckV2(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the move batch check route.
Declaration
public IAsyncResult BeginMoveBatchCheckV2(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginMoveBatchCheckV2(String, AsyncCallback, Object)
Begins an asynchronous send to the move batch check route.
Declaration
public IAsyncResult BeginMoveBatchCheckV2(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginMoveBatchV2(MoveBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the move batch route.
Declaration
public IAsyncResult BeginMoveBatchV2(MoveBatchArg moveBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Move |
moveBatchArg | 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. |
BeginMoveBatchV2(IEnumerable<RelocationPath>, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the move batch route.
Declaration
public IAsyncResult BeginMoveBatchV2(IEnumerable<RelocationPath> entries, bool autorename = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginMoveV2(RelocationArg, AsyncCallback, Object)
Begins an asynchronous send to the move route.
Declaration
public IAsyncResult BeginMoveV2(RelocationArg relocationArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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. |
BeginMoveV2(String, String, Boolean, Boolean, Boolean, AsyncCallback, Object)
Begins an asynchronous send to the move route.
Declaration
public IAsyncResult BeginMoveV2(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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. |
BeginPaperCreate(PaperCreateArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the paper create route.
Declaration
public IAsyncResult BeginPaperCreate(PaperCreateArg paperCreateArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Paper |
paperCreateArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginPaperCreate(String, ImportFormat, Stream, AsyncCallback, Object)
Begins an asynchronous send to the paper create route.
Declaration
public IAsyncResult BeginPaperCreate(string path, ImportFormat importFormat, Stream body, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The fully qualified path to the location in the user's Dropbox where the Paper Doc should be created. This should include the document's title and end with .paper. |
Import |
importFormat | The format of the provided data. |
System. |
body | The document to upload |
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. |
BeginPaperUpdate(PaperUpdateArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the paper update route.
Declaration
public IAsyncResult BeginPaperUpdate(PaperUpdateArg paperUpdateArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Paper |
paperUpdateArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginPaperUpdate(String, ImportFormat, PaperDocUpdatePolicy, Nullable<Int64>, Stream, AsyncCallback, Object)
Begins an asynchronous send to the paper update route.
Declaration
public IAsyncResult BeginPaperUpdate(string path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy, long? paperRevision = null, Stream body = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to update. The path must correspond to a Paper doc or an error will be returned. |
Import |
importFormat | The format of the provided data. |
Paper |
docUpdatePolicy | How the provided content should be applied to the doc. |
System. |
paperRevision | The latest doc revision. Required when doc_update_policy is update. This value must match the current revision of the doc or error revision_mismatch will be returned. |
System. |
body | The document to upload |
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. |
BeginPermanentlyDelete(DeleteArg, AsyncCallback, Object)
Begins an asynchronous send to the permanently delete route.
Declaration
public IAsyncResult BeginPermanentlyDelete(DeleteArg deleteArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteArg | 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. |
BeginPermanentlyDelete(String, String, AsyncCallback, Object)
Begins an asynchronous send to the permanently delete route.
Declaration
public IAsyncResult BeginPermanentlyDelete(string path, string parentRev = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to delete. |
System. |
parentRev | Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. |
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. |
BeginPropertiesAdd(AddPropertiesArg, AsyncCallback, Object)
Begins an asynchronous send to the properties add route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesAdd(AddPropertiesArg addPropertiesArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Add |
addPropertiesArg | 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. |
BeginPropertiesAdd(String, IEnumerable<PropertyGroup>, AsyncCallback, Object)
Begins an asynchronous send to the properties add route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesAdd(string path, IEnumerable<PropertyGroup> propertyGroups, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
propertyGroups | The property groups which are to be added to a Dropbox file. No two groups in the input should refer to the same template. |
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. |
BeginPropertiesOverwrite(OverwritePropertyGroupArg, AsyncCallback, Object)
Begins an asynchronous send to the properties overwrite route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesOverwrite(OverwritePropertyGroupArg overwritePropertyGroupArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Overwrite |
overwritePropertyGroupArg | 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. |
BeginPropertiesOverwrite(String, IEnumerable<PropertyGroup>, AsyncCallback, Object)
Begins an asynchronous send to the properties overwrite route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesOverwrite(string path, IEnumerable<PropertyGroup> propertyGroups, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
propertyGroups | The property groups "snapshot" updates to force apply. No two groups in the input should refer to the same template. |
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. |
BeginPropertiesRemove(RemovePropertiesArg, AsyncCallback, Object)
Begins an asynchronous send to the properties remove route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesRemove(RemovePropertiesArg removePropertiesArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Remove |
removePropertiesArg | 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. |
BeginPropertiesRemove(String, IEnumerable<String>, AsyncCallback, Object)
Begins an asynchronous send to the properties remove route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesRemove(string path, IEnumerable<string> propertyTemplateIds, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
propertyTemplateIds | A list of identifiers for a template created by
Templates |
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. |
BeginPropertiesTemplateGet(GetTemplateArg, AsyncCallback, Object)
Begins an asynchronous send to the properties template get route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesTemplateGet(GetTemplateArg getTemplateArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTemplateArg | 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. |
BeginPropertiesTemplateGet(String, AsyncCallback, Object)
Begins an asynchronous send to the properties template get route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesTemplateGet(string templateId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
templateId | An identifier for template added by route See Templates |
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. |
BeginPropertiesTemplateList(AsyncCallback, Object)
Begins an asynchronous send to the properties template list route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesTemplateList(AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
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. |
BeginPropertiesUpdate(UpdatePropertiesArg, AsyncCallback, Object)
Begins an asynchronous send to the properties update route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesUpdate(UpdatePropertiesArg updatePropertiesArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Update |
updatePropertiesArg | 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. |
BeginPropertiesUpdate(String, IEnumerable<PropertyGroupUpdate>, AsyncCallback, Object)
Begins an asynchronous send to the properties update route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginPropertiesUpdate(string path, IEnumerable<PropertyGroupUpdate> updatePropertyGroups, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
updatePropertyGroups | The property groups "delta" updates to apply. |
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. |
BeginRestore(RestoreArg, AsyncCallback, Object)
Begins an asynchronous send to the restore route.
Declaration
public IAsyncResult BeginRestore(RestoreArg restoreArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Restore |
restoreArg | 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. |
BeginRestore(String, String, AsyncCallback, Object)
Begins an asynchronous send to the restore route.
Declaration
public IAsyncResult BeginRestore(string path, string rev, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to save the restored file. |
System. |
rev | The revision to restore. |
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. |
BeginSaveUrl(SaveUrlArg, AsyncCallback, Object)
Begins an asynchronous send to the save url route.
Declaration
public IAsyncResult BeginSaveUrl(SaveUrlArg saveUrlArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Save |
saveUrlArg | 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. |
BeginSaveUrl(String, String, AsyncCallback, Object)
Begins an asynchronous send to the save url route.
Declaration
public IAsyncResult BeginSaveUrl(string path, string url, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path in Dropbox where the URL will be saved to. |
System. |
url | The URL to be saved. |
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. |
BeginSaveUrlCheckJobStatus(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the save url check job status route.
Declaration
public IAsyncResult BeginSaveUrlCheckJobStatus(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginSaveUrlCheckJobStatus(String, AsyncCallback, Object)
Begins an asynchronous send to the save url check job status route.
Declaration
public IAsyncResult BeginSaveUrlCheckJobStatus(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginSearch(SearchArg, AsyncCallback, Object)
Begins an asynchronous send to the search route.
Declaration
[Obsolete("This function is deprecated, please use BeginSearchV2 instead.")]
public IAsyncResult BeginSearch(SearchArg searchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Search |
searchArg | 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. |
BeginSearch(String, String, UInt64, UInt64, SearchMode, AsyncCallback, Object)
Begins an asynchronous send to the search route.
Declaration
[Obsolete("This function is deprecated, please use BeginSearchV2 instead.")]
public IAsyncResult BeginSearch(string path, string query, ulong start = 0UL, ulong maxResults = 100UL, SearchMode mode = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path in the user's Dropbox to search. Should probably be a folder. |
System. |
query | The string to search for. Query string may be rewritten to improve relevance of results. The string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car"). |
System. |
start | The starting index within the search results (used for paging). |
System. |
maxResults | The maximum number of search results to return. |
Search |
mode | The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts. |
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. |
BeginSearchContinueV2(SearchV2ContinueArg, AsyncCallback, Object)
Begins an asynchronous send to the search continue route.
Declaration
public IAsyncResult BeginSearchContinueV2(SearchV2ContinueArg searchV2ContinueArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Search |
searchV2ContinueArg | 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. |
BeginSearchContinueV2(String, AsyncCallback, Object)
Begins an asynchronous send to the search continue route.
Declaration
public IAsyncResult BeginSearchContinueV2(string cursor, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
cursor | The cursor returned by your last call to Search |
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. |
BeginSearchV2(SearchV2Arg, AsyncCallback, Object)
Begins an asynchronous send to the search route.
Declaration
public IAsyncResult BeginSearchV2(SearchV2Arg searchV2Arg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Search |
searchV2Arg | 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. |
BeginSearchV2(String, SearchOptions, SearchMatchFieldOptions, Nullable<Boolean>, AsyncCallback, Object)
Begins an asynchronous send to the search route.
Declaration
public IAsyncResult BeginSearchV2(string query, SearchOptions options = null, SearchMatchFieldOptions matchFieldOptions = null, bool? includeHighlights = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
query | The string to search for. May match across multiple fields based on the request arguments. |
Search |
options | Options for more targeted search results. |
Search |
matchFieldOptions | Options for search results match fields. |
System. |
includeHighlights | Deprecated and moved this option to SearchMatchFieldOptions. |
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. |
BeginTagsAdd(AddTagArg, AsyncCallback, Object)
Begins an asynchronous send to the tags add route.
Declaration
public IAsyncResult BeginTagsAdd(AddTagArg addTagArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Add |
addTagArg | 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. |
BeginTagsAdd(String, String, AsyncCallback, Object)
Begins an asynchronous send to the tags add route.
Declaration
public IAsyncResult BeginTagsAdd(string path, string tagText, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path to the item to be tagged. |
System. |
tagText | The value of the tag to add. |
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. |
BeginTagsGet(GetTagsArg, AsyncCallback, Object)
Begins an asynchronous send to the tags get route.
Declaration
public IAsyncResult BeginTagsGet(GetTagsArg getTagsArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTagsArg | 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. |
BeginTagsGet(IEnumerable<String>, AsyncCallback, Object)
Begins an asynchronous send to the tags get route.
Declaration
public IAsyncResult BeginTagsGet(IEnumerable<string> paths, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
paths | Path to the items. |
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. |
BeginTagsRemove(RemoveTagArg, AsyncCallback, Object)
Begins an asynchronous send to the tags remove route.
Declaration
public IAsyncResult BeginTagsRemove(RemoveTagArg removeTagArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Remove |
removeTagArg | 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. |
BeginTagsRemove(String, String, AsyncCallback, Object)
Begins an asynchronous send to the tags remove route.
Declaration
public IAsyncResult BeginTagsRemove(string path, string tagText, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path to the item to tag. |
System. |
tagText | The tag to remove. |
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. |
BeginUnlockFileBatch(UnlockFileBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the unlock file batch route.
Declaration
public IAsyncResult BeginUnlockFileBatch(UnlockFileBatchArg unlockFileBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Unlock |
unlockFileBatchArg | 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. |
BeginUnlockFileBatch(IEnumerable<UnlockFileArg>, AsyncCallback, Object)
Begins an asynchronous send to the unlock file batch route.
Declaration
public IAsyncResult BeginUnlockFileBatch(IEnumerable<UnlockFileArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of 'entries'. Each 'entry' contains a path of the file which will be unlocked. Duplicate path arguments in the batch are considered only once. |
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. |
BeginUpload(UploadArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload route.
Declaration
public IAsyncResult BeginUpload(UploadArg uploadArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginUpload(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean, String, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload route.
Declaration
public IAsyncResult BeginUpload(string path, WriteMode mode = null, bool autorename = false, DateTime? clientModified = null, bool mute = false, IEnumerable<PropertyGroup> propertyGroups = null, bool strictConflict = false, string contentHash = null, Stream body = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to save the file. |
Write |
mode | Selects what to do if the file already exists. |
System. |
autorename | If there's a conflict, as determined by |
System. |
clientModified | The value to store as the |
System. |
mute | Normally, users are made aware of any file modifications in
their Dropbox account via notifications in the client software. If |
System. |
propertyGroups | List of custom properties to add to file. |
System. |
strictConflict | Be more strict about how each Write |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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. |
BeginUploadSessionAppend(UploadSessionCursor, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session append route.
Declaration
[Obsolete("This function is deprecated, please use BeginUploadSessionAppendV2 instead.")]
public IAsyncResult BeginUploadSessionAppend(UploadSessionCursor uploadSessionCursor, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionCursor | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginUploadSessionAppend(String, UInt64, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session append route.
Declaration
[Obsolete("This function is deprecated, please use BeginUploadSessionAppendV2 instead.")]
public IAsyncResult BeginUploadSessionAppend(string sessionId, ulong offset, Stream body, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
sessionId | The upload session ID (returned by Upload |
System. |
offset | Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or duplicated in the event of a network error. |
System. |
body | The document to upload |
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. |
BeginUploadSessionAppendV2(UploadSessionAppendArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session append route.
Declaration
public IAsyncResult BeginUploadSessionAppendV2(UploadSessionAppendArg uploadSessionAppendArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionAppendArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginUploadSessionAppendV2(UploadSessionCursor, Boolean, String, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session append route.
Declaration
public IAsyncResult BeginUploadSessionAppendV2(UploadSessionCursor cursor, bool close = false, string contentHash = null, Stream body = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
cursor | Contains the upload session ID and the offset. |
System. |
close | If true, the current session will be closed, at which point you
won't be able to call Upload |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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. |
BeginUploadSessionFinish(UploadSessionCursor, CommitInfo, String, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish route.
Declaration
public IAsyncResult BeginUploadSessionFinish(UploadSessionCursor cursor, CommitInfo commit, string contentHash = null, Stream body = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
cursor | Contains the upload session ID and the offset. |
Commit |
commit | Contains the path and other optional modifiers for the commit. |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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. |
BeginUploadSessionFinish(UploadSessionFinishArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish route.
Declaration
public IAsyncResult BeginUploadSessionFinish(UploadSessionFinishArg uploadSessionFinishArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionFinishArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginUploadSessionFinishBatch(UploadSessionFinishBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish batch route.
Declaration
[Obsolete("This function is deprecated, please use BeginUploadSessionFinishBatchV2 instead.")]
public IAsyncResult BeginUploadSessionFinishBatch(UploadSessionFinishBatchArg uploadSessionFinishBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionFinishBatchArg | 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. |
BeginUploadSessionFinishBatch(IEnumerable<UploadSessionFinishArg>, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish batch route.
Declaration
[Obsolete("This function is deprecated, please use BeginUploadSessionFinishBatchV2 instead.")]
public IAsyncResult BeginUploadSessionFinishBatch(IEnumerable<UploadSessionFinishArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | Commit information for each file in the batch. |
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. |
BeginUploadSessionFinishBatchCheck(PollArg, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish batch check route.
Declaration
public IAsyncResult BeginUploadSessionFinishBatchCheck(PollArg pollArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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. |
BeginUploadSessionFinishBatchCheck(String, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish batch check route.
Declaration
public IAsyncResult BeginUploadSessionFinishBatchCheck(string asyncJobId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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. |
BeginUploadSessionFinishBatchV2(UploadSessionFinishBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish batch route.
Declaration
public IAsyncResult BeginUploadSessionFinishBatchV2(UploadSessionFinishBatchArg uploadSessionFinishBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionFinishBatchArg | 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. |
BeginUploadSessionFinishBatchV2(IEnumerable<UploadSessionFinishArg>, AsyncCallback, Object)
Begins an asynchronous send to the upload session finish batch route.
Declaration
public IAsyncResult BeginUploadSessionFinishBatchV2(IEnumerable<UploadSessionFinishArg> entries, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | Commit information for each file in the batch. |
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. |
BeginUploadSessionStart(UploadSessionStartArg, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session start route.
Declaration
public IAsyncResult BeginUploadSessionStart(UploadSessionStartArg uploadSessionStartArg, Stream body, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionStartArg | The request parameters. |
System. |
body | The content to upload. |
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. |
BeginUploadSessionStart(Boolean, UploadSessionType, String, Stream, AsyncCallback, Object)
Begins an asynchronous send to the upload session start route.
Declaration
public IAsyncResult BeginUploadSessionStart(bool close = false, UploadSessionType sessionType = null, string contentHash = null, Stream body = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
close | If true, the current session will be closed, at which point you
won't be able to call Upload |
Upload |
sessionType | Type of upload session you want to start. If not
specified, default is Upload |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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. |
BeginUploadSessionStartBatch(UploadSessionStartBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the upload session start batch route.
Declaration
public IAsyncResult BeginUploadSessionStartBatch(UploadSessionStartBatchArg uploadSessionStartBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionStartBatchArg | 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. |
BeginUploadSessionStartBatch(UInt64, UploadSessionType, AsyncCallback, Object)
Begins an asynchronous send to the upload session start batch route.
Declaration
public IAsyncResult BeginUploadSessionStartBatch(ulong numSessions, UploadSessionType sessionType = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
numSessions | The number of upload sessions to start. |
Upload |
sessionType | Type of upload session you want to start. If not
specified, default is Upload |
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. |
CopyAsync(RelocationArg)
Copy a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be copied.
Declaration
[Obsolete("This function is deprecated, please use CopyV2Async instead.")]
public Task<Metadata> CopyAsync(RelocationArg relocationArg)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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 Relocation |
CopyAsync(String, String, Boolean, Boolean, Boolean)
Copy a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be copied.
Declaration
[Obsolete("This function is deprecated, please use CopyV2Async instead.")]
public Task<Metadata> CopyAsync(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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 Relocation |
CopyBatchAsync(RelocationBatchArg)
Copy multiple files or folders to different locations at once in the user's Dropbox.
This route will return job ID immediately and do the async copy job in
background. Please use Copy
Declaration
[Obsolete("This function is deprecated, please use CopyBatchV2Async instead.")]
public Task<RelocationBatchLaunch> CopyBatchAsync(RelocationBatchArg relocationBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
CopyBatchAsync(IEnumerable<RelocationPath>, Boolean, Boolean, Boolean)
Copy multiple files or folders to different locations at once in the user's Dropbox.
This route will return job ID immediately and do the async copy job in
background. Please use Copy
Declaration
[Obsolete("This function is deprecated, please use CopyBatchV2Async instead.")]
public Task<RelocationBatchLaunch> CopyBatchAsync(IEnumerable<RelocationPath> entries, bool autorename = false, bool allowSharedFolder = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
CopyBatchCheckAsync(PollArg)
Returns the status of an asynchronous job for Copy
Declaration
[Obsolete("This function is deprecated, please use CopyBatchCheckV2Async instead.")]
public Task<RelocationBatchJobStatus> CopyBatchCheckAsync(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
CopyBatchCheckAsync(String)
Returns the status of an asynchronous job for Copy
Declaration
[Obsolete("This function is deprecated, please use CopyBatchCheckV2Async instead.")]
public Task<RelocationBatchJobStatus> CopyBatchCheckAsync(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
CopyBatchCheckV2Async(PollArg)
Returns the status of an asynchronous job for Copy
Declaration
public Task<RelocationBatchV2JobStatus> CopyBatchCheckV2Async(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
CopyBatchCheckV2Async(String)
Returns the status of an asynchronous job for Copy
Declaration
public Task<RelocationBatchV2JobStatus> CopyBatchCheckV2Async(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
CopyBatchV2Async(RelocationBatchArgBase)
Copy multiple files or folders to different locations at once in the user's Dropbox.
This route will replace Copy
This route will either finish synchronously, or return a job ID and do the
async copy job in background. Please use Copy
Declaration
public Task<RelocationBatchV2Launch> CopyBatchV2Async(RelocationBatchArgBase relocationBatchArgBase)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationBatchArgBase | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
CopyBatchV2Async(IEnumerable<RelocationPath>, Boolean)
Copy multiple files or folders to different locations at once in the user's Dropbox.
This route will replace Copy
This route will either finish synchronously, or return a job ID and do the
async copy job in background. Please use Copy
Declaration
public Task<RelocationBatchV2Launch> CopyBatchV2Async(IEnumerable<RelocationPath> entries, bool autorename = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
CopyReferenceGetAsync(GetCopyReferenceArg)
Get a copy reference to a file or folder. This reference string can be used
to save that file or folder to another user's Dropbox by passing it to Copy
Declaration
public Task<GetCopyReferenceResult> CopyReferenceGetAsync(GetCopyReferenceArg getCopyReferenceArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getCopyReferenceArg | 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 Get |
CopyReferenceGetAsync(String)
Get a copy reference to a file or folder. This reference string can be used
to save that file or folder to another user's Dropbox by passing it to Copy
Declaration
public Task<GetCopyReferenceResult> CopyReferenceGetAsync(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the file or folder you want to get a copy reference to. |
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 Get |
CopyReferenceSaveAsync(SaveCopyReferenceArg)
Save a copy reference returned by Copy
Declaration
public Task<SaveCopyReferenceResult> CopyReferenceSaveAsync(SaveCopyReferenceArg saveCopyReferenceArg)
Parameters
Type | Name | Description |
---|---|---|
Save |
saveCopyReferenceArg | 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 Save |
CopyReferenceSaveAsync(String, String)
Save a copy reference returned by Copy
Declaration
public Task<SaveCopyReferenceResult> CopyReferenceSaveAsync(string copyReference, string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
copyReference | A copy reference returned by Copy |
System. |
path | Path in the user's Dropbox that is the destination. |
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 Save |
CopyV2Async(RelocationArg)
Copy a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be copied.
Declaration
public Task<RelocationResult> CopyV2Async(RelocationArg relocationArg)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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 Relocation |
CopyV2Async(String, String, Boolean, Boolean, Boolean)
Copy a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be copied.
Declaration
public Task<RelocationResult> CopyV2Async(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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 Relocation |
CreateFolderAsync(CreateFolderArg)
Create a folder at a given path.
Declaration
[Obsolete("This function is deprecated, please use CreateFolderV2Async instead.")]
public Task<FolderMetadata> CreateFolderAsync(CreateFolderArg createFolderArg)
Parameters
Type | Name | Description |
---|---|---|
Create |
createFolderArg | 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 Create |
CreateFolderAsync(String, Boolean)
Create a folder at a given path.
Declaration
[Obsolete("This function is deprecated, please use CreateFolderV2Async instead.")]
public Task<FolderMetadata> CreateFolderAsync(string path, bool autorename = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to create. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. |
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 Create |
CreateFolderBatchAsync(CreateFolderBatchArg)
Create multiple folders at once.
This route is asynchronous for large batches, which returns a job ID
immediately and runs the create folder batch asynchronously. Otherwise, creates the
folders and returns the result synchronously for smaller inputs. You can force
asynchronous behaviour by using the Force
Declaration
public Task<CreateFolderBatchLaunch> CreateFolderBatchAsync(CreateFolderBatchArg createFolderBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Create |
createFolderBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
CreateFolderBatchAsync(IEnumerable<String>, Boolean, Boolean)
Create multiple folders at once.
This route is asynchronous for large batches, which returns a job ID
immediately and runs the create folder batch asynchronously. Otherwise, creates the
folders and returns the result synchronously for smaller inputs. You can force
asynchronous behaviour by using the Force
Declaration
public Task<CreateFolderBatchLaunch> CreateFolderBatchAsync(IEnumerable<string> paths, bool autorename = false, bool forceAsync = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
paths | List of paths to be created in the user's Dropbox. Duplicate path arguments in the batch are considered only once. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. |
System. |
forceAsync | Whether to force the create to happen asynchronously. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
CreateFolderBatchCheckAsync(PollArg)
Returns the status of an asynchronous job for Create
Declaration
public Task<CreateFolderBatchJobStatus> CreateFolderBatchCheckAsync(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
CreateFolderBatchCheckAsync(String)
Returns the status of an asynchronous job for Create
Declaration
public Task<CreateFolderBatchJobStatus> CreateFolderBatchCheckAsync(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
CreateFolderV2Async(CreateFolderArg)
Create a folder at a given path.
Declaration
public Task<CreateFolderResult> CreateFolderV2Async(CreateFolderArg createFolderArg)
Parameters
Type | Name | Description |
---|---|---|
Create |
createFolderArg | 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 Create |
CreateFolderV2Async(String, Boolean)
Create a folder at a given path.
Declaration
public Task<CreateFolderResult> CreateFolderV2Async(string path, bool autorename = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to create. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. |
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 Create |
DeleteAsync(DeleteArg)
Delete the file or folder at a given path.
If the path is a folder, all its contents will be deleted too.
A successful response indicates that the file or folder was deleted. The
returned metadata will be the corresponding File
Declaration
[Obsolete("This function is deprecated, please use DeleteV2Async instead.")]
public Task<Metadata> DeleteAsync(DeleteArg deleteArg)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteArg | 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 Delete |
DeleteAsync(String, String)
Delete the file or folder at a given path.
If the path is a folder, all its contents will be deleted too.
A successful response indicates that the file or folder was deleted. The
returned metadata will be the corresponding File
Declaration
[Obsolete("This function is deprecated, please use DeleteV2Async instead.")]
public Task<Metadata> DeleteAsync(string path, string parentRev = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to delete. |
System. |
parentRev | Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. |
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 Delete |
DeleteBatchAsync(DeleteBatchArg)
Delete multiple files/folders at once.
This route is asynchronous, which returns a job ID immediately and runs the
delete batch asynchronously. Use Delete
Declaration
public Task<DeleteBatchLaunch> DeleteBatchAsync(DeleteBatchArg deleteBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
DeleteBatchAsync(IEnumerable<DeleteArg>)
Delete multiple files/folders at once.
This route is asynchronous, which returns a job ID immediately and runs the
delete batch asynchronously. Use Delete
Declaration
public Task<DeleteBatchLaunch> DeleteBatchAsync(IEnumerable<DeleteArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | The entries |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
DeleteBatchCheckAsync(PollArg)
Returns the status of an asynchronous job for Delete
Declaration
public Task<DeleteBatchJobStatus> DeleteBatchCheckAsync(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
DeleteBatchCheckAsync(String)
Returns the status of an asynchronous job for Delete
Declaration
public Task<DeleteBatchJobStatus> DeleteBatchCheckAsync(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
DeleteV2Async(DeleteArg)
Delete the file or folder at a given path.
If the path is a folder, all its contents will be deleted too.
A successful response indicates that the file or folder was deleted. The
returned metadata will be the corresponding File
Declaration
public Task<DeleteResult> DeleteV2Async(DeleteArg deleteArg)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteArg | 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 Delete |
DeleteV2Async(String, String)
Delete the file or folder at a given path.
If the path is a folder, all its contents will be deleted too.
A successful response indicates that the file or folder was deleted. The
returned metadata will be the corresponding File
Declaration
public Task<DeleteResult> DeleteV2Async(string path, string parentRev = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to delete. |
System. |
parentRev | Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. |
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 Delete |
DownloadAsync(DownloadArg)
Download a file from a user's Dropbox.
Declaration
public Task<IDownloadResponse<FileMetadata>> DownloadAsync(DownloadArg downloadArg)
Parameters
Type | Name | Description |
---|---|---|
Download |
downloadArg | 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 Download |
DownloadAsync(String, String)
Download a file from a user's Dropbox.
Declaration
public Task<IDownloadResponse<FileMetadata>> DownloadAsync(string path, string rev = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the file to download. |
System. |
rev | Please specify revision in |
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 Download |
DownloadZipAsync(DownloadZipArg)
Download a folder from the user's Dropbox, as a zip file. The folder must be less than 20 GB in size and any single file within must be less than 4 GB in size. The resulting zip must have fewer than 10,000 total file and folder entries, including the top level folder. The input cannot be a single file.
Declaration
public Task<IDownloadResponse<DownloadZipResult>> DownloadZipAsync(DownloadZipArg downloadZipArg)
Parameters
Type | Name | Description |
---|---|---|
Download |
downloadZipArg | 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 Download |
DownloadZipAsync(String)
Download a folder from the user's Dropbox, as a zip file. The folder must be less than 20 GB in size and any single file within must be less than 4 GB in size. The resulting zip must have fewer than 10,000 total file and folder entries, including the top level folder. The input cannot be a single file.
Declaration
public Task<IDownloadResponse<DownloadZipResult>> DownloadZipAsync(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the folder to download. |
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 Download |
EndAlphaGetMetadata(IAsyncResult)
Waits for the pending asynchronous send to the alpha get metadata route to complete
Declaration
[Obsolete("This function is deprecated, please use EndGetMetadata instead.")]
public Metadata EndAlphaGetMetadata(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Metadata | The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Alpha |
EndAlphaUpload(IAsyncResult)
Waits for the pending asynchronous send to the alpha upload route to complete
Declaration
[Obsolete("This function is deprecated, please use EndUpload instead.")]
public FileMetadata EndAlphaUpload(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
File |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
EndCopy(IAsyncResult)
Waits for the pending asynchronous send to the copy route to complete
Declaration
[Obsolete("This function is deprecated, please use EndCopyV2 instead.")]
public Metadata EndCopy(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Metadata | The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Relocation |
EndCopyBatch(IAsyncResult)
Waits for the pending asynchronous send to the copy batch route to complete
Declaration
[Obsolete("This function is deprecated, please use EndCopyBatchV2 instead.")]
public RelocationBatchLaunch EndCopyBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
EndCopyBatchCheck(IAsyncResult)
Waits for the pending asynchronous send to the copy batch check route to complete
Declaration
[Obsolete("This function is deprecated, please use EndCopyBatchCheckV2 instead.")]
public RelocationBatchJobStatus EndCopyBatchCheck(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndCopyBatchCheckV2(IAsyncResult)
Waits for the pending asynchronous send to the copy batch check route to complete
Declaration
public RelocationBatchV2JobStatus EndCopyBatchCheckV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndCopyBatchV2(IAsyncResult)
Waits for the pending asynchronous send to the copy batch route to complete
Declaration
public RelocationBatchV2Launch EndCopyBatchV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
EndCopyReferenceGet(IAsyncResult)
Waits for the pending asynchronous send to the copy reference get route to complete
Declaration
public GetCopyReferenceResult EndCopyReferenceGet(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Get |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Get |
EndCopyReferenceSave(IAsyncResult)
Waits for the pending asynchronous send to the copy reference save route to complete
Declaration
public SaveCopyReferenceResult EndCopyReferenceSave(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Save |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Save |
EndCopyV2(IAsyncResult)
Waits for the pending asynchronous send to the copy route to complete
Declaration
public RelocationResult EndCopyV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Relocation |
EndCreateFolder(IAsyncResult)
Waits for the pending asynchronous send to the create folder route to complete
Declaration
[Obsolete("This function is deprecated, please use EndCreateFolderV2 instead.")]
public FolderMetadata EndCreateFolder(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Folder |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Create |
EndCreateFolderBatch(IAsyncResult)
Waits for the pending asynchronous send to the create folder batch route to complete
Declaration
public CreateFolderBatchLaunch EndCreateFolderBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Create |
The response to the send request |
EndCreateFolderBatchCheck(IAsyncResult)
Waits for the pending asynchronous send to the create folder batch check route to complete
Declaration
public CreateFolderBatchJobStatus EndCreateFolderBatchCheck(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Create |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndCreateFolderV2(IAsyncResult)
Waits for the pending asynchronous send to the create folder route to complete
Declaration
public CreateFolderResult EndCreateFolderV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Create |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Create |
EndDelete(IAsyncResult)
Waits for the pending asynchronous send to the delete route to complete
Declaration
[Obsolete("This function is deprecated, please use EndDeleteV2 instead.")]
public Metadata EndDelete(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Metadata | The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Delete |
EndDeleteBatch(IAsyncResult)
Waits for the pending asynchronous send to the delete batch route to complete
Declaration
public DeleteBatchLaunch EndDeleteBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Delete |
The response to the send request |
EndDeleteBatchCheck(IAsyncResult)
Waits for the pending asynchronous send to the delete batch check route to complete
Declaration
public DeleteBatchJobStatus EndDeleteBatchCheck(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Delete |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndDeleteV2(IAsyncResult)
Waits for the pending asynchronous send to the delete route to complete
Declaration
public DeleteResult EndDeleteV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Delete |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Delete |
EndDownload(IAsyncResult)
Waits for the pending asynchronous send to the download route to complete
Declaration
public IDownloadResponse<FileMetadata> EndDownload(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 Download |
EndDownloadZip(IAsyncResult)
Waits for the pending asynchronous send to the download zip route to complete
Declaration
public IDownloadResponse<DownloadZipResult> EndDownloadZip(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 Download |
EndExport(IAsyncResult)
Waits for the pending asynchronous send to the export route to complete
Declaration
public IDownloadResponse<ExportResult> EndExport(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 Export |
EndGetFileLockBatch(IAsyncResult)
Waits for the pending asynchronous send to the get file lock batch route to complete
Declaration
public LockFileBatchResult EndGetFileLockBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Lock |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Lock |
EndGetMetadata(IAsyncResult)
Waits for the pending asynchronous send to the get metadata route to complete
Declaration
public Metadata EndGetMetadata(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Metadata | The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Get |
EndGetPreview(IAsyncResult)
Waits for the pending asynchronous send to the get preview route to complete
Declaration
public IDownloadResponse<FileMetadata> EndGetPreview(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 Preview |
EndGetTemporaryLink(IAsyncResult)
Waits for the pending asynchronous send to the get temporary link route to complete
Declaration
public GetTemporaryLinkResult EndGetTemporaryLink(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Get |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Get |
EndGetTemporaryUploadLink(IAsyncResult)
Waits for the pending asynchronous send to the get temporary upload link route to complete
Declaration
public GetTemporaryUploadLinkResult EndGetTemporaryUploadLink(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Get |
The response to the send request |
EndGetThumbnail(IAsyncResult)
Waits for the pending asynchronous send to the get thumbnail route to complete
Declaration
public IDownloadResponse<FileMetadata> EndGetThumbnail(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 |
EndGetThumbnailBatch(IAsyncResult)
Waits for the pending asynchronous send to the get thumbnail batch route to complete
Declaration
public GetThumbnailBatchResult EndGetThumbnailBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Get |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Get |
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 |
EndListFolderGetLatestCursor(IAsyncResult)
Waits for the pending asynchronous send to the list folder get latest cursor route to complete
Declaration
public ListFolderGetLatestCursorResult EndListFolderGetLatestCursor(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 |
EndListFolderLongpoll(IAsyncResult)
Waits for the pending asynchronous send to the list folder longpoll route to complete
Declaration
public ListFolderLongpollResult EndListFolderLongpoll(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 |
EndListRevisions(IAsyncResult)
Waits for the pending asynchronous send to the list revisions route to complete
Declaration
public ListRevisionsResult EndListRevisions(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 |
EndLockFileBatch(IAsyncResult)
Waits for the pending asynchronous send to the lock file batch route to complete
Declaration
public LockFileBatchResult EndLockFileBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Lock |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Lock |
EndMove(IAsyncResult)
Waits for the pending asynchronous send to the move route to complete
Declaration
[Obsolete("This function is deprecated, please use EndMoveV2 instead.")]
public Metadata EndMove(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Metadata | The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Relocation |
EndMoveBatch(IAsyncResult)
Waits for the pending asynchronous send to the move batch route to complete
Declaration
[Obsolete("This function is deprecated, please use EndMoveBatchV2 instead.")]
public RelocationBatchLaunch EndMoveBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
EndMoveBatchCheck(IAsyncResult)
Waits for the pending asynchronous send to the move batch check route to complete
Declaration
[Obsolete("This function is deprecated, please use EndMoveBatchCheckV2 instead.")]
public RelocationBatchJobStatus EndMoveBatchCheck(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndMoveBatchCheckV2(IAsyncResult)
Waits for the pending asynchronous send to the move batch check route to complete
Declaration
public RelocationBatchV2JobStatus EndMoveBatchCheckV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndMoveBatchV2(IAsyncResult)
Waits for the pending asynchronous send to the move batch route to complete
Declaration
public RelocationBatchV2Launch EndMoveBatchV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
EndMoveV2(IAsyncResult)
Waits for the pending asynchronous send to the move route to complete
Declaration
public RelocationResult EndMoveV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Relocation |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Relocation |
EndPaperCreate(IAsyncResult)
Waits for the pending asynchronous send to the paper create route to complete
Declaration
public PaperCreateResult EndPaperCreate(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Paper |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Paper |
EndPaperUpdate(IAsyncResult)
Waits for the pending asynchronous send to the paper update route to complete
Declaration
public PaperUpdateResult EndPaperUpdate(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Paper |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Paper |
EndPermanentlyDelete(IAsyncResult)
Waits for the pending asynchronous send to the permanently delete route to complete
Declaration
public void EndPermanentlyDelete(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Delete |
EndPropertiesAdd(IAsyncResult)
Waits for the pending asynchronous send to the properties add route to complete
Declaration
[Obsolete("This function is deprecated")]
public void EndPropertiesAdd(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Add |
EndPropertiesOverwrite(IAsyncResult)
Waits for the pending asynchronous send to the properties overwrite route to complete
Declaration
[Obsolete("This function is deprecated")]
public void EndPropertiesOverwrite(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Invalid |
EndPropertiesRemove(IAsyncResult)
Waits for the pending asynchronous send to the properties remove route to complete
Declaration
[Obsolete("This function is deprecated")]
public void EndPropertiesRemove(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Remove |
EndPropertiesTemplateGet(IAsyncResult)
Waits for the pending asynchronous send to the properties template get route to complete
Declaration
[Obsolete("This function is deprecated")]
public GetTemplateResult EndPropertiesTemplateGet(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Get |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Template |
EndPropertiesTemplateList(IAsyncResult)
Waits for the pending asynchronous send to the properties template list route to complete
Declaration
[Obsolete("This function is deprecated")]
public ListTemplateResult EndPropertiesTemplateList(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 Template |
EndPropertiesUpdate(IAsyncResult)
Waits for the pending asynchronous send to the properties update route to complete
Declaration
[Obsolete("This function is deprecated")]
public void EndPropertiesUpdate(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Update |
EndRestore(IAsyncResult)
Waits for the pending asynchronous send to the restore route to complete
Declaration
public FileMetadata EndRestore(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
File |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Restore |
EndSaveUrl(IAsyncResult)
Waits for the pending asynchronous send to the save url route to complete
Declaration
public SaveUrlResult EndSaveUrl(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Save |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Save |
EndSaveUrlCheckJobStatus(IAsyncResult)
Waits for the pending asynchronous send to the save url check job status route to complete
Declaration
public SaveUrlJobStatus EndSaveUrlCheckJobStatus(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Save |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndSearch(IAsyncResult)
Waits for the pending asynchronous send to the search route to complete
Declaration
[Obsolete("This function is deprecated, please use EndSearchV2 instead.")]
public SearchResult EndSearch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Search |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Search |
EndSearchContinueV2(IAsyncResult)
Waits for the pending asynchronous send to the search continue route to complete
Declaration
public SearchV2Result EndSearchContinueV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Search |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Search |
EndSearchV2(IAsyncResult)
Waits for the pending asynchronous send to the search route to complete
Declaration
public SearchV2Result EndSearchV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Search |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Search |
EndTagsAdd(IAsyncResult)
Waits for the pending asynchronous send to the tags add route to complete
Declaration
public void EndTagsAdd(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Add |
EndTagsGet(IAsyncResult)
Waits for the pending asynchronous send to the tags get route to complete
Declaration
public GetTagsResult EndTagsGet(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Get |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Base |
EndTagsRemove(IAsyncResult)
Waits for the pending asynchronous send to the tags remove route to complete
Declaration
public void EndTagsRemove(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Remove |
EndUnlockFileBatch(IAsyncResult)
Waits for the pending asynchronous send to the unlock file batch route to complete
Declaration
public LockFileBatchResult EndUnlockFileBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Lock |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Lock |
EndUpload(IAsyncResult)
Waits for the pending asynchronous send to the upload route to complete
Declaration
public FileMetadata EndUpload(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
File |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
EndUploadSessionAppend(IAsyncResult)
Waits for the pending asynchronous send to the upload session append route to complete
Declaration
[Obsolete("This function is deprecated, please use EndUploadSessionAppendV2 instead.")]
public void EndUploadSessionAppend(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
EndUploadSessionAppendV2(IAsyncResult)
Waits for the pending asynchronous send to the upload session append route to complete
Declaration
public void EndUploadSessionAppendV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
EndUploadSessionFinish(IAsyncResult)
Waits for the pending asynchronous send to the upload session finish route to complete
Declaration
public FileMetadata EndUploadSessionFinish(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
File |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
EndUploadSessionFinishBatch(IAsyncResult)
Waits for the pending asynchronous send to the upload session finish batch route to complete
Declaration
[Obsolete("This function is deprecated, please use EndUploadSessionFinishBatchV2 instead.")]
public UploadSessionFinishBatchLaunch EndUploadSessionFinishBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Upload |
The response to the send request |
EndUploadSessionFinishBatchCheck(IAsyncResult)
Waits for the pending asynchronous send to the upload session finish batch check route to complete
Declaration
public UploadSessionFinishBatchJobStatus EndUploadSessionFinishBatchCheck(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Upload |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Poll |
EndUploadSessionFinishBatchV2(IAsyncResult)
Waits for the pending asynchronous send to the upload session finish batch route to complete
Declaration
public UploadSessionFinishBatchResult EndUploadSessionFinishBatchV2(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Upload |
The response to the send request |
EndUploadSessionStart(IAsyncResult)
Waits for the pending asynchronous send to the upload session start route to complete
Declaration
public UploadSessionStartResult EndUploadSessionStart(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Upload |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
EndUploadSessionStartBatch(IAsyncResult)
Waits for the pending asynchronous send to the upload session start batch route to complete
Declaration
public UploadSessionStartBatchResult EndUploadSessionStartBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Upload |
The response to the send request |
ExportAsync(ExportArg)
Export a file from a user's Dropbox. This route only supports exporting files
that cannot be downloaded directly and whose File
Declaration
public Task<IDownloadResponse<ExportResult>> ExportAsync(ExportArg exportArg)
Parameters
Type | Name | Description |
---|---|---|
Export |
exportArg | 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 Export |
ExportAsync(String, String)
Export a file from a user's Dropbox. This route only supports exporting files
that cannot be downloaded directly and whose File
Declaration
public Task<IDownloadResponse<ExportResult>> ExportAsync(string path, string exportFormat = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the file to be exported. |
System. |
exportFormat | The file format to which the file should be exported.
This must be one of the formats listed in the file's export_options returned by
Get |
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 Export |
GetFileLockBatchAsync(LockFileBatchArg)
Return the lock metadata for the given list of paths.
Declaration
public Task<LockFileBatchResult> GetFileLockBatchAsync(LockFileBatchArg lockFileBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Lock |
lockFileBatchArg | 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 Lock |
GetFileLockBatchAsync(IEnumerable<LockFileArg>)
Return the lock metadata for the given list of paths.
Declaration
public Task<LockFileBatchResult> GetFileLockBatchAsync(IEnumerable<LockFileArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of 'entries'. Each 'entry' contains a path of the file which will be locked or queried. Duplicate path arguments in the batch are considered only once. |
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 Lock |
GetMetadataAsync(GetMetadataArg)
Returns the metadata for a file or folder.
Note: Metadata for the root folder is unsupported.
Declaration
public Task<Metadata> GetMetadataAsync(GetMetadataArg getMetadataArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getMetadataArg | 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 Get |
GetMetadataAsync(String, Boolean, Boolean, Boolean, TemplateFilterBase)
Returns the metadata for a file or folder.
Note: Metadata for the root folder is unsupported.
Declaration
public Task<Metadata> GetMetadataAsync(string path, bool includeMediaInfo = false, bool includeDeleted = false, bool includeHasExplicitSharedMembers = false, TemplateFilterBase includePropertyGroups = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of a file or folder on Dropbox. |
System. |
includeMediaInfo | If true, Media |
System. |
includeDeleted | If true, Deleted |
System. |
includeHasExplicitSharedMembers | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
Template |
includePropertyGroups | If set to a valid list of template IDs, Property |
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 Get |
GetPreviewAsync(PreviewArg)
Get a preview for a file.
Currently, PDF previews are generated for files with the following extensions: .ai, .doc, .docm, .docx, .eps, .gdoc, .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf.
HTML previews are generated for files with the following extensions: .csv, .ods, .xls, .xlsm, .gsheet, .xlsx.
Other formats will return an unsupported extension error.
Declaration
public Task<IDownloadResponse<FileMetadata>> GetPreviewAsync(PreviewArg previewArg)
Parameters
Type | Name | Description |
---|---|---|
Preview |
previewArg | 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 Preview |
GetPreviewAsync(String, String)
Get a preview for a file.
Currently, PDF previews are generated for files with the following extensions: .ai, .doc, .docm, .docx, .eps, .gdoc, .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf.
HTML previews are generated for files with the following extensions: .csv, .ods, .xls, .xlsm, .gsheet, .xlsx.
Other formats will return an unsupported extension error.
Declaration
public Task<IDownloadResponse<FileMetadata>> GetPreviewAsync(string path, string rev = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path of the file to preview. |
System. |
rev | Please specify revision in |
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 Preview |
GetTemporaryLinkAsync(GetTemporaryLinkArg)
Get a temporary link to stream content of a file. This link will expire in four hours and afterwards you will get 410 Gone. This URL should not be used to display content directly in the browser. The Content-Type of the link is determined automatically by the file's mime type.
Declaration
public Task<GetTemporaryLinkResult> GetTemporaryLinkAsync(GetTemporaryLinkArg getTemporaryLinkArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTemporaryLinkArg | 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 Get |
GetTemporaryLinkAsync(String)
Get a temporary link to stream content of a file. This link will expire in four hours and afterwards you will get 410 Gone. This URL should not be used to display content directly in the browser. The Content-Type of the link is determined automatically by the file's mime type.
Declaration
public Task<GetTemporaryLinkResult> GetTemporaryLinkAsync(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the file you want a temporary link to. |
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 Get |
GetTemporaryUploadLinkAsync(CommitInfo, Double)
Get a one-time use temporary upload link to upload a file to a Dropbox location.
This endpoint acts as a delayed Upload
The POST request on the temporary upload link must have its Content-Type set to "application/octet-stream".
Example temporary upload link consumption request:
curl -X POST https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND
--header "Content-Type: application/octet-stream"
--data-binary @local_file.txt
A successful temporary upload link consumption request returns the content hash of the uploaded data in JSON format.
Example successful temporary upload link consumption response:
{"content-hash": "599d71033d700ac892a0e48fa61b125d2f5994"}
An unsuccessful temporary upload link consumption request returns any of the following status codes:
HTTP 400 Bad Request: Content-Type is not one of application/octet-stream and text/plain or request is invalid.
HTTP 409 Conflict: The temporary upload link does not exist or is currently unavailable, the upload failed, or another error happened.
HTTP 410 Gone: The temporary upload link is expired or consumed.
Example unsuccessful temporary upload link consumption response:
Temporary upload link has been recently consumed.
Declaration
public Task<GetTemporaryUploadLinkResult> GetTemporaryUploadLinkAsync(CommitInfo commitInfo, double duration = 14400)
Parameters
Type | Name | Description |
---|---|---|
Commit |
commitInfo | Contains the path and other optional modifiers for the
future upload commit. Equivalent to the parameters provided to Upload |
System. |
duration | How long before this link expires, in seconds. Attempting to start an upload with this link longer than this period of time after link creation will result in an error. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
GetTemporaryUploadLinkAsync(GetTemporaryUploadLinkArg)
Get a one-time use temporary upload link to upload a file to a Dropbox location.
This endpoint acts as a delayed Upload
The POST request on the temporary upload link must have its Content-Type set to "application/octet-stream".
Example temporary upload link consumption request:
curl -X POST https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND
--header "Content-Type: application/octet-stream"
--data-binary @local_file.txt
A successful temporary upload link consumption request returns the content hash of the uploaded data in JSON format.
Example successful temporary upload link consumption response:
{"content-hash": "599d71033d700ac892a0e48fa61b125d2f5994"}
An unsuccessful temporary upload link consumption request returns any of the following status codes:
HTTP 400 Bad Request: Content-Type is not one of application/octet-stream and text/plain or request is invalid.
HTTP 409 Conflict: The temporary upload link does not exist or is currently unavailable, the upload failed, or another error happened.
HTTP 410 Gone: The temporary upload link is expired or consumed.
Example unsuccessful temporary upload link consumption response:
Temporary upload link has been recently consumed.
Declaration
public Task<GetTemporaryUploadLinkResult> GetTemporaryUploadLinkAsync(GetTemporaryUploadLinkArg getTemporaryUploadLinkArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTemporaryUploadLinkArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
GetThumbnailAsync(ThumbnailArg)
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<FileMetadata>> GetThumbnailAsync(ThumbnailArg thumbnailArg)
Parameters
Type | Name | Description |
---|---|---|
Thumbnail |
thumbnailArg | 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 |
GetThumbnailAsync(String, 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<FileMetadata>> GetThumbnailAsync(string path, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the image file you want to thumbnail. |
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 |
GetThumbnailBatchAsync(GetThumbnailBatchArg)
Get thumbnails for a list of images. We allow up to 25 thumbnails in a single batch.
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<GetThumbnailBatchResult> GetThumbnailBatchAsync(GetThumbnailBatchArg getThumbnailBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getThumbnailBatchArg | 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 Get |
GetThumbnailBatchAsync(IEnumerable<ThumbnailArg>)
Get thumbnails for a list of images. We allow up to 25 thumbnails in a single batch.
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<GetThumbnailBatchResult> GetThumbnailBatchAsync(IEnumerable<ThumbnailArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of files to get thumbnails. |
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 Get |
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 |
ListFolderGetLatestCursorAsync(ListFolderArg)
A way to quickly get a cursor for the folder's state. Unlike List
Declaration
public Task<ListFolderGetLatestCursorResult> ListFolderGetLatestCursorAsync(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 |
ListFolderGetLatestCursorAsync(String, Boolean, Boolean, Boolean, Boolean, Boolean, Nullable<UInt32>, SharedLink, TemplateFilterBase, Boolean)
A way to quickly get a cursor for the folder's state. Unlike List
Declaration
public Task<ListFolderGetLatestCursorResult> ListFolderGetLatestCursorAsync(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 |
ListFolderLongpollAsync(ListFolderLongpollArg)
A longpoll endpoint to wait for changes on an account. In conjunction with
List
Declaration
public Task<ListFolderLongpollResult> ListFolderLongpollAsync(ListFolderLongpollArg listFolderLongpollArg)
Parameters
Type | Name | Description |
---|---|---|
List |
listFolderLongpollArg | 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 |
ListFolderLongpollAsync(String, UInt64)
A longpoll endpoint to wait for changes on an account. In conjunction with
List
Declaration
public Task<ListFolderLongpollResult> ListFolderLongpollAsync(string cursor, ulong timeout = 30UL)
Parameters
Type | Name | Description |
---|---|---|
System. |
cursor | A cursor as returned by List |
System. |
timeout | A timeout in seconds. The request will block for at most this length of time, plus up to 90 seconds of random jitter added to avoid the thundering herd problem. Care should be taken when using this parameter, as some network infrastructure does not support long timeouts. |
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 |
ListRevisionsAsync(ListRevisionsArg)
Returns revisions for files based on a file path or a file id. The file path or file id is identified from the latest file entry at the given file path or id. This end point allows your app to query either by file path or file id by setting the mode parameter appropriately.
In the List
Declaration
public Task<ListRevisionsResult> ListRevisionsAsync(ListRevisionsArg listRevisionsArg)
Parameters
Type | Name | Description |
---|---|---|
List |
listRevisionsArg | 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 |
ListRevisionsAsync(String, ListRevisionsMode, UInt64)
Returns revisions for files based on a file path or a file id. The file path or file id is identified from the latest file entry at the given file path or id. This end point allows your app to query either by file path or file id by setting the mode parameter appropriately.
In the List
Declaration
public Task<ListRevisionsResult> ListRevisionsAsync(string path, ListRevisionsMode mode = null, ulong limit = 10UL)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to the file you want to see the revisions of. |
List |
mode | Determines the behavior of the API in listing the revisions for a given file path or id. |
System. |
limit | The maximum number of revision entries returned. |
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 |
LockFileBatchAsync(LockFileBatchArg)
Lock the files at the given paths. A locked file will be writable only by the lock holder. A successful response indicates that the file has been locked. Returns a list of the locked file paths and their metadata after this operation.
Declaration
public Task<LockFileBatchResult> LockFileBatchAsync(LockFileBatchArg lockFileBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Lock |
lockFileBatchArg | 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 Lock |
LockFileBatchAsync(IEnumerable<LockFileArg>)
Lock the files at the given paths. A locked file will be writable only by the lock holder. A successful response indicates that the file has been locked. Returns a list of the locked file paths and their metadata after this operation.
Declaration
public Task<LockFileBatchResult> LockFileBatchAsync(IEnumerable<LockFileArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of 'entries'. Each 'entry' contains a path of the file which will be locked or queried. Duplicate path arguments in the batch are considered only once. |
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 Lock |
MoveAsync(RelocationArg)
Move a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be moved.
Declaration
[Obsolete("This function is deprecated, please use MoveV2Async instead.")]
public Task<Metadata> MoveAsync(RelocationArg relocationArg)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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 Relocation |
MoveAsync(String, String, Boolean, Boolean, Boolean)
Move a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be moved.
Declaration
[Obsolete("This function is deprecated, please use MoveV2Async instead.")]
public Task<Metadata> MoveAsync(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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 Relocation |
MoveBatchAsync(RelocationBatchArg)
Move multiple files or folders to different locations at once in the user's Dropbox.
This route will return job ID immediately and do the async moving job in
background. Please use Move
Declaration
[Obsolete("This function is deprecated, please use MoveBatchV2Async instead.")]
public Task<RelocationBatchLaunch> MoveBatchAsync(RelocationBatchArg relocationBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
MoveBatchAsync(IEnumerable<RelocationPath>, Boolean, Boolean, Boolean)
Move multiple files or folders to different locations at once in the user's Dropbox.
This route will return job ID immediately and do the async moving job in
background. Please use Move
Declaration
[Obsolete("This function is deprecated, please use MoveBatchV2Async instead.")]
public Task<RelocationBatchLaunch> MoveBatchAsync(IEnumerable<RelocationPath> entries, bool autorename = false, bool allowSharedFolder = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
MoveBatchCheckAsync(PollArg)
Returns the status of an asynchronous job for Move
Declaration
[Obsolete("This function is deprecated, please use MoveBatchCheckV2Async instead.")]
public Task<RelocationBatchJobStatus> MoveBatchCheckAsync(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
MoveBatchCheckAsync(String)
Returns the status of an asynchronous job for Move
Declaration
[Obsolete("This function is deprecated, please use MoveBatchCheckV2Async instead.")]
public Task<RelocationBatchJobStatus> MoveBatchCheckAsync(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
MoveBatchCheckV2Async(PollArg)
Returns the status of an asynchronous job for Move
Declaration
public Task<RelocationBatchV2JobStatus> MoveBatchCheckV2Async(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
MoveBatchCheckV2Async(String)
Returns the status of an asynchronous job for Move
Declaration
public Task<RelocationBatchV2JobStatus> MoveBatchCheckV2Async(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
MoveBatchV2Async(MoveBatchArg)
Move multiple files or folders to different locations at once in the user's Dropbox. Note that we do not currently support case-only renaming.
This route will replace Move
This route will either finish synchronously, or return a job ID and do the
async move job in background. Please use Move
Declaration
public Task<RelocationBatchV2Launch> MoveBatchV2Async(MoveBatchArg moveBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Move |
moveBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
MoveBatchV2Async(IEnumerable<RelocationPath>, Boolean, Boolean)
Move multiple files or folders to different locations at once in the user's Dropbox. Note that we do not currently support case-only renaming.
This route will replace Move
This route will either finish synchronously, or return a job ID and do the
async move job in background. Please use Move
Declaration
public Task<RelocationBatchV2Launch> MoveBatchV2Async(IEnumerable<RelocationPath> entries, bool autorename = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of entries to be moved or copied. Each entry is Relocation |
System. |
autorename | If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
MoveV2Async(RelocationArg)
Move a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be moved.
Note that we do not currently support case-only renaming.
Declaration
public Task<RelocationResult> MoveV2Async(RelocationArg relocationArg)
Parameters
Type | Name | Description |
---|---|---|
Relocation |
relocationArg | 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 Relocation |
MoveV2Async(String, String, Boolean, Boolean, Boolean)
Move a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be moved.
Note that we do not currently support case-only renaming.
Declaration
public Task<RelocationResult> MoveV2Async(string fromPath, string toPath, bool allowSharedFolder = false, bool autorename = false, bool allowOwnershipTransfer = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromPath | Path in the user's Dropbox to be copied or moved. |
System. |
toPath | Path in the user's Dropbox that is the destination. |
System. |
allowSharedFolder | This flag has no effect. |
System. |
autorename | If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. |
System. |
allowOwnershipTransfer | Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. |
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 Relocation |
PaperCreateAsync(PaperCreateArg, Stream)
Creates a new Paper doc with the provided content.
Declaration
public Task<PaperCreateResult> PaperCreateAsync(PaperCreateArg paperCreateArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Paper |
paperCreateArg | The request parameters |
System. |
body | The content to upload. |
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 Paper |
PaperCreateAsync(String, ImportFormat, Stream)
Creates a new Paper doc with the provided content.
Declaration
public Task<PaperCreateResult> PaperCreateAsync(string path, ImportFormat importFormat, Stream body)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The fully qualified path to the location in the user's Dropbox where the Paper Doc should be created. This should include the document's title and end with .paper. |
Import |
importFormat | The format of the provided data. |
System. |
body | The document to upload |
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 Paper |
PaperUpdateAsync(PaperUpdateArg, Stream)
Updates an existing Paper doc with the provided content.
Declaration
public Task<PaperUpdateResult> PaperUpdateAsync(PaperUpdateArg paperUpdateArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Paper |
paperUpdateArg | The request parameters |
System. |
body | The content to upload. |
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 Paper |
PaperUpdateAsync(String, ImportFormat, PaperDocUpdatePolicy, Nullable<Int64>, Stream)
Updates an existing Paper doc with the provided content.
Declaration
public Task<PaperUpdateResult> PaperUpdateAsync(string path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy, long? paperRevision = null, Stream body = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to update. The path must correspond to a Paper doc or an error will be returned. |
Import |
importFormat | The format of the provided data. |
Paper |
docUpdatePolicy | How the provided content should be applied to the doc. |
System. |
paperRevision | The latest doc revision. Required when doc_update_policy is update. This value must match the current revision of the doc or error revision_mismatch will be returned. |
System. |
body | The document to upload |
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 Paper |
PermanentlyDeleteAsync(DeleteArg)
Permanently delete the file or folder at a given path (see https://www.dropbox.com/en/help/40).
If the given file or folder is not yet deleted, this route will first delete it. It is possible for this route to successfully delete, then fail to permanently delete.
Note: This endpoint is only available for Dropbox Business apps.
Declaration
public Task PermanentlyDeleteAsync(DeleteArg deleteArg)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deleteArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Delete |
PermanentlyDeleteAsync(String, String)
Permanently delete the file or folder at a given path (see https://www.dropbox.com/en/help/40).
If the given file or folder is not yet deleted, this route will first delete it. It is possible for this route to successfully delete, then fail to permanently delete.
Note: This endpoint is only available for Dropbox Business apps.
Declaration
public Task PermanentlyDeleteAsync(string path, string parentRev = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to delete. |
System. |
parentRev | Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Delete |
PropertiesAddAsync(AddPropertiesArg)
The properties add route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesAddAsync(AddPropertiesArg addPropertiesArg)
Parameters
Type | Name | Description |
---|---|---|
Add |
addPropertiesArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Add |
PropertiesAddAsync(String, IEnumerable<PropertyGroup>)
The properties add route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesAddAsync(string path, IEnumerable<PropertyGroup> propertyGroups)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
propertyGroups | The property groups which are to be added to a Dropbox file. No two groups in the input should refer to the same template. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Add |
PropertiesOverwriteAsync(OverwritePropertyGroupArg)
The properties overwrite route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesOverwriteAsync(OverwritePropertyGroupArg overwritePropertyGroupArg)
Parameters
Type | Name | Description |
---|---|---|
Overwrite |
overwritePropertyGroupArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Invalid |
PropertiesOverwriteAsync(String, IEnumerable<PropertyGroup>)
The properties overwrite route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesOverwriteAsync(string path, IEnumerable<PropertyGroup> propertyGroups)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
propertyGroups | The property groups "snapshot" updates to force apply. No two groups in the input should refer to the same template. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Invalid |
PropertiesRemoveAsync(RemovePropertiesArg)
The properties remove route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesRemoveAsync(RemovePropertiesArg removePropertiesArg)
Parameters
Type | Name | Description |
---|---|---|
Remove |
removePropertiesArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Remove |
PropertiesRemoveAsync(String, IEnumerable<String>)
The properties remove route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesRemoveAsync(string path, IEnumerable<string> propertyTemplateIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
propertyTemplateIds | A list of identifiers for a template created by
Templates |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Remove |
PropertiesTemplateGetAsync(GetTemplateArg)
The properties template get route
Declaration
[Obsolete("This function is deprecated")]
public Task<GetTemplateResult> PropertiesTemplateGetAsync(GetTemplateArg getTemplateArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTemplateArg | 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 Template |
PropertiesTemplateGetAsync(String)
The properties template get route
Declaration
[Obsolete("This function is deprecated")]
public Task<GetTemplateResult> PropertiesTemplateGetAsync(string templateId)
Parameters
Type | Name | Description |
---|---|---|
System. |
templateId | An identifier for template added by route See Templates |
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 Template |
PropertiesTemplateListAsync()
The properties template list route
Declaration
[Obsolete("This function is deprecated")]
public Task<ListTemplateResult> PropertiesTemplateListAsync()
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 Template |
PropertiesUpdateAsync(UpdatePropertiesArg)
The properties update route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesUpdateAsync(UpdatePropertiesArg updatePropertiesArg)
Parameters
Type | Name | Description |
---|---|---|
Update |
updatePropertiesArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Update |
PropertiesUpdateAsync(String, IEnumerable<PropertyGroupUpdate>)
The properties update route
Declaration
[Obsolete("This function is deprecated")]
public Task PropertiesUpdateAsync(string path, IEnumerable<PropertyGroupUpdate> updatePropertyGroups)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | A unique identifier for the file or folder. |
System. |
updatePropertyGroups | The property groups "delta" updates to apply. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Update |
RestoreAsync(RestoreArg)
Restore a specific revision of a file to the given path.
Declaration
public Task<FileMetadata> RestoreAsync(RestoreArg restoreArg)
Parameters
Type | Name | Description |
---|---|---|
Restore |
restoreArg | 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 Restore |
RestoreAsync(String, String)
Restore a specific revision of a file to the given path.
Declaration
public Task<FileMetadata> RestoreAsync(string path, string rev)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to save the restored file. |
System. |
rev | The revision to restore. |
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 Restore |
SaveUrlAsync(SaveUrlArg)
Save the data from a specified URL into a file in user's Dropbox.
Note that the transfer from the URL must complete within 5 minutes, or the operation will time out and the job will fail.
If the given path already exists, the file will be renamed to avoid the conflict (e.g. myfile (1).txt).
Declaration
public Task<SaveUrlResult> SaveUrlAsync(SaveUrlArg saveUrlArg)
Parameters
Type | Name | Description |
---|---|---|
Save |
saveUrlArg | 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 Save |
SaveUrlAsync(String, String)
Save the data from a specified URL into a file in user's Dropbox.
Note that the transfer from the URL must complete within 5 minutes, or the operation will time out and the job will fail.
If the given path already exists, the file will be renamed to avoid the conflict (e.g. myfile (1).txt).
Declaration
public Task<SaveUrlResult> SaveUrlAsync(string path, string url)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path in Dropbox where the URL will be saved to. |
System. |
url | The URL to be saved. |
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 Save |
SaveUrlCheckJobStatusAsync(PollArg)
Check the status of a Save
Declaration
public Task<SaveUrlJobStatus> SaveUrlCheckJobStatusAsync(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
SaveUrlCheckJobStatusAsync(String)
Check the status of a Save
Declaration
public Task<SaveUrlJobStatus> SaveUrlCheckJobStatusAsync(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
SearchAsync(SearchArg)
Searches for files and folders.
Note: Recent changes will be reflected in search results within a few seconds and older revisions of existing files may still match your query for up to a few days.
Declaration
[Obsolete("This function is deprecated, please use SearchV2Async instead.")]
public Task<SearchResult> SearchAsync(SearchArg searchArg)
Parameters
Type | Name | Description |
---|---|---|
Search |
searchArg | 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 Search |
SearchAsync(String, String, UInt64, UInt64, SearchMode)
Searches for files and folders.
Note: Recent changes will be reflected in search results within a few seconds and older revisions of existing files may still match your query for up to a few days.
Declaration
[Obsolete("This function is deprecated, please use SearchV2Async instead.")]
public Task<SearchResult> SearchAsync(string path, string query, ulong start = 0UL, ulong maxResults = 100UL, SearchMode mode = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path in the user's Dropbox to search. Should probably be a folder. |
System. |
query | The string to search for. Query string may be rewritten to improve relevance of results. The string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car"). |
System. |
start | The starting index within the search results (used for paging). |
System. |
maxResults | The maximum number of search results to return. |
Search |
mode | The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts. |
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 Search |
SearchContinueV2Async(SearchV2ContinueArg)
Fetches the next page of search results returned from Search
Note: Search
Recent changes may not immediately be reflected in search results due to a short delay in indexing. Duplicate results may be returned across pages. Some results may not be returned.
Declaration
public Task<SearchV2Result> SearchContinueV2Async(SearchV2ContinueArg searchV2ContinueArg)
Parameters
Type | Name | Description |
---|---|---|
Search |
searchV2ContinueArg | 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 Search |
SearchContinueV2Async(String)
Fetches the next page of search results returned from Search
Note: Search
Recent changes may not immediately be reflected in search results due to a short delay in indexing. Duplicate results may be returned across pages. Some results may not be returned.
Declaration
public Task<SearchV2Result> SearchContinueV2Async(string cursor)
Parameters
Type | Name | Description |
---|---|---|
System. |
cursor | The cursor returned by your last call to Search |
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 Search |
SearchV2Async(SearchV2Arg)
Searches for files and folders.
Note: Search
Recent changes may not immediately be reflected in search results due to a short delay in indexing. Duplicate results may be returned across pages. Some results may not be returned.
Declaration
public Task<SearchV2Result> SearchV2Async(SearchV2Arg searchV2Arg)
Parameters
Type | Name | Description |
---|---|---|
Search |
searchV2Arg | 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 Search |
SearchV2Async(String, SearchOptions, SearchMatchFieldOptions, Nullable<Boolean>)
Searches for files and folders.
Note: Search
Recent changes may not immediately be reflected in search results due to a short delay in indexing. Duplicate results may be returned across pages. Some results may not be returned.
Declaration
public Task<SearchV2Result> SearchV2Async(string query, SearchOptions options = null, SearchMatchFieldOptions matchFieldOptions = null, bool? includeHighlights = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
query | The string to search for. May match across multiple fields based on the request arguments. |
Search |
options | Options for more targeted search results. |
Search |
matchFieldOptions | Options for search results match fields. |
System. |
includeHighlights | Deprecated and moved this option to SearchMatchFieldOptions. |
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 Search |
TagsAddAsync(AddTagArg)
Add a tag to an item. A tag is a string. The strings are automatically converted to lowercase letters. No more than 20 tags can be added to a given item.
Declaration
public Task TagsAddAsync(AddTagArg addTagArg)
Parameters
Type | Name | Description |
---|---|---|
Add |
addTagArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Add |
TagsAddAsync(String, String)
Add a tag to an item. A tag is a string. The strings are automatically converted to lowercase letters. No more than 20 tags can be added to a given item.
Declaration
public Task TagsAddAsync(string path, string tagText)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path to the item to be tagged. |
System. |
tagText | The value of the tag to add. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Add |
TagsGetAsync(GetTagsArg)
Get list of tags assigned to items.
Declaration
public Task<GetTagsResult> TagsGetAsync(GetTagsArg getTagsArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getTagsArg | 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 Base |
TagsGetAsync(IEnumerable<String>)
Get list of tags assigned to items.
Declaration
public Task<GetTagsResult> TagsGetAsync(IEnumerable<string> paths)
Parameters
Type | Name | Description |
---|---|---|
System. |
paths | Path to the items. |
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 Base |
TagsRemoveAsync(RemoveTagArg)
Remove a tag from an item.
Declaration
public Task TagsRemoveAsync(RemoveTagArg removeTagArg)
Parameters
Type | Name | Description |
---|---|---|
Remove |
removeTagArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Remove |
TagsRemoveAsync(String, String)
Remove a tag from an item.
Declaration
public Task TagsRemoveAsync(string path, string tagText)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path to the item to tag. |
System. |
tagText | The tag to remove. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Remove |
UnlockFileBatchAsync(UnlockFileBatchArg)
Unlock the files at the given paths. A locked file can only be unlocked by the lock holder or, if a business account, a team admin. A successful response indicates that the file has been unlocked. Returns a list of the unlocked file paths and their metadata after this operation.
Declaration
public Task<LockFileBatchResult> UnlockFileBatchAsync(UnlockFileBatchArg unlockFileBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Unlock |
unlockFileBatchArg | 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 Lock |
UnlockFileBatchAsync(IEnumerable<UnlockFileArg>)
Unlock the files at the given paths. A locked file can only be unlocked by the lock holder or, if a business account, a team admin. A successful response indicates that the file has been unlocked. Returns a list of the unlocked file paths and their metadata after this operation.
Declaration
public Task<LockFileBatchResult> UnlockFileBatchAsync(IEnumerable<UnlockFileArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | List of 'entries'. Each 'entry' contains a path of the file which will be unlocked. Duplicate path arguments in the batch are considered only once. |
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 Lock |
UploadAsync(UploadArg, Stream)
Create a new file with the contents provided in the request.
Do not use this to upload a file larger than 150 MB. Instead, create an
upload session with Upload
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task<FileMetadata> UploadAsync(UploadArg uploadArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadArg | The request parameters |
System. |
body | The content to upload. |
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 Upload |
UploadAsync(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean, String, Stream)
Create a new file with the contents provided in the request.
Do not use this to upload a file larger than 150 MB. Instead, create an
upload session with Upload
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task<FileMetadata> UploadAsync(string path, WriteMode mode = null, bool autorename = false, DateTime? clientModified = null, bool mute = false, IEnumerable<PropertyGroup> propertyGroups = null, bool strictConflict = false, string contentHash = null, Stream body = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Path in the user's Dropbox to save the file. |
Write |
mode | Selects what to do if the file already exists. |
System. |
autorename | If there's a conflict, as determined by |
System. |
clientModified | The value to store as the |
System. |
mute | Normally, users are made aware of any file modifications in
their Dropbox account via notifications in the client software. If |
System. |
propertyGroups | List of custom properties to add to file. |
System. |
strictConflict | Be more strict about how each Write |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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 Upload |
UploadSessionAppendAsync(UploadSessionCursor, Stream)
Append more data to an upload session.
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
[Obsolete("This function is deprecated, please use UploadSessionAppendV2Async instead.")]
public Task UploadSessionAppendAsync(UploadSessionCursor uploadSessionCursor, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionCursor | The request parameters |
System. |
body | The content to upload. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
UploadSessionAppendAsync(String, UInt64, Stream)
Append more data to an upload session.
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
[Obsolete("This function is deprecated, please use UploadSessionAppendV2Async instead.")]
public Task UploadSessionAppendAsync(string sessionId, ulong offset, Stream body)
Parameters
Type | Name | Description |
---|---|---|
System. |
sessionId | The upload session ID (returned by Upload |
System. |
offset | Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or duplicated in the event of a network error. |
System. |
body | The document to upload |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
UploadSessionAppendV2Async(UploadSessionAppendArg, Stream)
Append more data to an upload session.
When the parameter close is set, this call will close the session.
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task UploadSessionAppendV2Async(UploadSessionAppendArg uploadSessionAppendArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionAppendArg | The request parameters |
System. |
body | The content to upload. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
UploadSessionAppendV2Async(UploadSessionCursor, Boolean, String, Stream)
Append more data to an upload session.
When the parameter close is set, this call will close the session.
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task UploadSessionAppendV2Async(UploadSessionCursor cursor, bool close = false, string contentHash = null, Stream body = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
cursor | Contains the upload session ID and the offset. |
System. |
close | If true, the current session will be closed, at which point you
won't be able to call Upload |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Upload |
UploadSessionFinishAsync(UploadSessionCursor, CommitInfo, String, Stream)
Finish an upload session and save the uploaded data to the given file path.
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task<FileMetadata> UploadSessionFinishAsync(UploadSessionCursor cursor, CommitInfo commit, string contentHash = null, Stream body = null)
Parameters
Type | Name | Description |
---|---|---|
Upload |
cursor | Contains the upload session ID and the offset. |
Commit |
commit | Contains the path and other optional modifiers for the commit. |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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 Upload |
UploadSessionFinishAsync(UploadSessionFinishArg, Stream)
Finish an upload session and save the uploaded data to the given file path.
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task<FileMetadata> UploadSessionFinishAsync(UploadSessionFinishArg uploadSessionFinishArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionFinishArg | The request parameters |
System. |
body | The content to upload. |
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 Upload |
UploadSessionFinishBatchAsync(UploadSessionFinishBatchArg)
This route helps you commit many files at once into a user's Dropbox. Use
Upload
Close or Close needs to be true for the
last Upload
This route will return a job_id immediately and do the async commit job in
background. Use Upload
For the same account, this route should be executed serially. That means you should not start the next job before current job finishes. We allow up to 1000 entries in a single request.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
[Obsolete("This function is deprecated, please use UploadSessionFinishBatchV2Async instead.")]
public Task<UploadSessionFinishBatchLaunch> UploadSessionFinishBatchAsync(UploadSessionFinishBatchArg uploadSessionFinishBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionFinishBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
UploadSessionFinishBatchAsync(IEnumerable<UploadSessionFinishArg>)
This route helps you commit many files at once into a user's Dropbox. Use
Upload
Close or Close needs to be true for the
last Upload
This route will return a job_id immediately and do the async commit job in
background. Use Upload
For the same account, this route should be executed serially. That means you should not start the next job before current job finishes. We allow up to 1000 entries in a single request.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
[Obsolete("This function is deprecated, please use UploadSessionFinishBatchV2Async instead.")]
public Task<UploadSessionFinishBatchLaunch> UploadSessionFinishBatchAsync(IEnumerable<UploadSessionFinishArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | Commit information for each file in the batch. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
UploadSessionFinishBatchCheckAsync(PollArg)
Returns the status of an asynchronous job for Upload
Declaration
public Task<UploadSessionFinishBatchJobStatus> UploadSessionFinishBatchCheckAsync(PollArg pollArg)
Parameters
Type | Name | Description |
---|---|---|
Poll |
pollArg | 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 Poll |
UploadSessionFinishBatchCheckAsync(String)
Returns the status of an asynchronous job for Upload
Declaration
public Task<UploadSessionFinishBatchJobStatus> UploadSessionFinishBatchCheckAsync(string asyncJobId)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncJobId | Id of the asynchronous job. This is the value of a response returned from the method that launched the job. |
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 Poll |
UploadSessionFinishBatchV2Async(UploadSessionFinishBatchArg)
This route helps you commit many files at once into a user's Dropbox. Use
Upload
Close or Close needs to be true for the
last Upload
We allow up to 1000 entries in a single request.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task<UploadSessionFinishBatchResult> UploadSessionFinishBatchV2Async(UploadSessionFinishBatchArg uploadSessionFinishBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionFinishBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
UploadSessionFinishBatchV2Async(IEnumerable<UploadSessionFinishArg>)
This route helps you commit many files at once into a user's Dropbox. Use
Upload
Close or Close needs to be true for the
last Upload
We allow up to 1000 entries in a single request.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Declaration
public Task<UploadSessionFinishBatchResult> UploadSessionFinishBatchV2Async(IEnumerable<UploadSessionFinishArg> entries)
Parameters
Type | Name | Description |
---|---|---|
System. |
entries | Commit information for each file in the batch. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
UploadSessionStartAsync(UploadSessionStartArg, Stream)
Upload sessions allow you to upload a single file in one or more requests,
for example where the size of the file is greater than 150 MB. This call starts a
new upload session with the given data. You can then use Upload
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
An upload session can be used for a maximum of 7 days. Attempting to use an
Session
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
By default, upload sessions require you to send content of the file in
sequential order via consecutive Upload
There are couple of constraints with concurrent sessions to make them work.
You can not send data with Uploadtrue
, that
may contain any remaining data).
Declaration
public Task<UploadSessionStartResult> UploadSessionStartAsync(UploadSessionStartArg uploadSessionStartArg, Stream body)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionStartArg | The request parameters |
System. |
body | The content to upload. |
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 Upload |
UploadSessionStartAsync(Boolean, UploadSessionType, String, Stream)
Upload sessions allow you to upload a single file in one or more requests,
for example where the size of the file is greater than 150 MB. This call starts a
new upload session with the given data. You can then use Upload
A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB.
An upload session can be used for a maximum of 7 days. Attempting to use an
Session
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
By default, upload sessions require you to send content of the file in
sequential order via consecutive Upload
There are couple of constraints with concurrent sessions to make them work.
You can not send data with Uploadtrue
, that
may contain any remaining data).
Declaration
public Task<UploadSessionStartResult> UploadSessionStartAsync(bool close = false, UploadSessionType sessionType = null, string contentHash = null, Stream body = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
close | If true, the current session will be closed, at which point you
won't be able to call Upload |
Upload |
sessionType | Type of upload session you want to start. If not
specified, default is Upload |
System. |
contentHash | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. |
System. |
body | The document to upload |
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 Upload |
UploadSessionStartBatchAsync(UploadSessionStartBatchArg)
This route starts batch of upload_sessions. Please refer to
upload_session/start
usage.
Declaration
public Task<UploadSessionStartBatchResult> UploadSessionStartBatchAsync(UploadSessionStartBatchArg uploadSessionStartBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Upload |
uploadSessionStartBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
UploadSessionStartBatchAsync(UInt64, UploadSessionType)
This route starts batch of upload_sessions. Please refer to
upload_session/start
usage.
Declaration
public Task<UploadSessionStartBatchResult> UploadSessionStartBatchAsync(ulong numSessions, UploadSessionType sessionType = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
numSessions | The number of upload sessions to start. |
Upload |
sessionType | Type of upload session you want to start. If not
specified, default is Upload |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |