Class AccountUserRoutes
The routes for the Dropbox.Api.Account namespace
Inheritance
Inherited Members
Namespace: Dropbox.Api.Account.Routes
Assembly: Dropbox.Api.dll
Syntax
public class AccountUserRoutes
Methods
| Improve this Doc View SourceBeginSetProfilePhoto(PhotoSourceArg, AsyncCallback, Object)
Begins an asynchronous send to the set profile photo route.
Declaration
public IAsyncResult BeginSetProfilePhoto(PhotoSourceArg photo, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
PhotoSourceArg | photo | Image to set as the user's new profile photo. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginSetProfilePhoto(SetProfilePhotoArg, AsyncCallback, Object)
Begins an asynchronous send to the set profile photo route.
Declaration
public IAsyncResult BeginSetProfilePhoto(SetProfilePhotoArg setProfilePhotoArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
SetProfilePhotoArg | setProfilePhotoArg | The request parameters. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
EndSetProfilePhoto(IAsyncResult)
Waits for the pending asynchronous send to the set profile photo route to complete
Declaration
public SetProfilePhotoResult EndSetProfilePhoto(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
SetProfilePhotoResult | The response to the send request |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a SetProfilePhotoError. |
SetProfilePhotoAsync(PhotoSourceArg)
Sets a user's profile photo.
Declaration
public Task<SetProfilePhotoResult> SetProfilePhotoAsync(PhotoSourceArg photo)
Parameters
Type | Name | Description |
---|---|---|
PhotoSourceArg | photo | Image to set as the user's new profile photo. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SetProfilePhotoResult> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a SetProfilePhotoError. |
SetProfilePhotoAsync(SetProfilePhotoArg)
Sets a user's profile photo.
Declaration
public Task<SetProfilePhotoResult> SetProfilePhotoAsync(SetProfilePhotoArg setProfilePhotoArg)
Parameters
Type | Name | Description |
---|---|---|
SetProfilePhotoArg | setProfilePhotoArg | The request parameters |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SetProfilePhotoResult> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a SetProfilePhotoError. |