Class UsersUserRoutes
The routes for the Dropbox.
Inheritance
Inherited Members
Namespace: Dropbox.Api.Users.Routes
Assembly: Dropbox.Api.dll
Syntax
public class UsersUserRoutes
Methods
| Improve this Doc View SourceBeginFeaturesGetValues(UserFeaturesGetValuesBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the features get values route.
Declaration
public IAsyncResult BeginFeaturesGetValues(UserFeaturesGetValuesBatchArg userFeaturesGetValuesBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
User |
userFeaturesGetValuesBatchArg | 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. |
BeginFeaturesGetValues(IEnumerable<UserFeature>, AsyncCallback, Object)
Begins an asynchronous send to the features get values route.
Declaration
public IAsyncResult BeginFeaturesGetValues(IEnumerable<UserFeature> features, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
features | A list of features in User |
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. |
BeginGetAccount(GetAccountArg, AsyncCallback, Object)
Begins an asynchronous send to the get account route.
Declaration
public IAsyncResult BeginGetAccount(GetAccountArg getAccountArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getAccountArg | 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. |
BeginGetAccount(String, AsyncCallback, Object)
Begins an asynchronous send to the get account route.
Declaration
public IAsyncResult BeginGetAccount(string accountId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
accountId | A user's account identifier. |
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. |
BeginGetAccountBatch(GetAccountBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the get account batch route.
Declaration
public IAsyncResult BeginGetAccountBatch(GetAccountBatchArg getAccountBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
getAccountBatchArg | 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. |
BeginGetAccountBatch(IEnumerable<String>, AsyncCallback, Object)
Begins an asynchronous send to the get account batch route.
Declaration
public IAsyncResult BeginGetAccountBatch(IEnumerable<string> accountIds, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
accountIds | List of user account identifiers. Should not contain any duplicate account IDs. |
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. |
BeginGetCurrentAccount(AsyncCallback, Object)
Begins an asynchronous send to the get current account route.
Declaration
public IAsyncResult BeginGetCurrentAccount(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. |
BeginGetSpaceUsage(AsyncCallback, Object)
Begins an asynchronous send to the get space usage route.
Declaration
public IAsyncResult BeginGetSpaceUsage(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. |
EndFeaturesGetValues(IAsyncResult)
Waits for the pending asynchronous send to the features get values route to complete
Declaration
public UserFeaturesGetValuesBatchResult EndFeaturesGetValues(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
User |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a User |
EndGetAccount(IAsyncResult)
Waits for the pending asynchronous send to the get account route to complete
Declaration
public BasicAccount EndGetAccount(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Basic |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Get |
EndGetAccountBatch(IAsyncResult)
Waits for the pending asynchronous send to the get account batch route to complete
Declaration
public List<BasicAccount> EndGetAccountBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
System. |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Get |
EndGetCurrentAccount(IAsyncResult)
Waits for the pending asynchronous send to the get current account route to complete
Declaration
public FullAccount EndGetCurrentAccount(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Full |
The response to the send request |
EndGetSpaceUsage(IAsyncResult)
Waits for the pending asynchronous send to the get space usage route to complete
Declaration
public SpaceUsage EndGetSpaceUsage(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Space |
The response to the send request |
FeaturesGetValuesAsync(UserFeaturesGetValuesBatchArg)
Get a list of feature values that may be configured for the current account.
Declaration
public Task<UserFeaturesGetValuesBatchResult> FeaturesGetValuesAsync(UserFeaturesGetValuesBatchArg userFeaturesGetValuesBatchArg)
Parameters
Type | Name | Description |
---|---|---|
User |
userFeaturesGetValuesBatchArg | 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 User |
FeaturesGetValuesAsync(IEnumerable<UserFeature>)
Get a list of feature values that may be configured for the current account.
Declaration
public Task<UserFeaturesGetValuesBatchResult> FeaturesGetValuesAsync(IEnumerable<UserFeature> features)
Parameters
Type | Name | Description |
---|---|---|
System. |
features | A list of features in User |
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 User |
GetAccountAsync(GetAccountArg)
Get information about a user's account.
Declaration
public Task<BasicAccount> GetAccountAsync(GetAccountArg getAccountArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getAccountArg | 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 |
GetAccountAsync(String)
Get information about a user's account.
Declaration
public Task<BasicAccount> GetAccountAsync(string accountId)
Parameters
Type | Name | Description |
---|---|---|
System. |
accountId | A user's account identifier. |
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 |
GetAccountBatchAsync(GetAccountBatchArg)
Get information about multiple user accounts. At most 300 accounts may be queried per request.
Declaration
public Task<List<BasicAccount>> GetAccountBatchAsync(GetAccountBatchArg getAccountBatchArg)
Parameters
Type | Name | Description |
---|---|---|
Get |
getAccountBatchArg | 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 |
GetAccountBatchAsync(IEnumerable<String>)
Get information about multiple user accounts. At most 300 accounts may be queried per request.
Declaration
public Task<List<BasicAccount>> GetAccountBatchAsync(IEnumerable<string> accountIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
accountIds | List of user account identifiers. Should not contain any duplicate account IDs. |
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 |
GetCurrentAccountAsync()
Get information about the current user's account.
Declaration
public Task<FullAccount> GetCurrentAccountAsync()
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
GetSpaceUsageAsync()
Get the space usage information for the current user's account.
Declaration
public Task<SpaceUsage> GetSpaceUsageAsync()
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |