Show / Hide Table of Contents

Class AccountUserRoutes

The routes for the Dropbox.Api.Account namespace

Inheritance
System.Object
AccountUserRoutes
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dropbox.Api.Account.Routes
Assembly: Dropbox.Api.dll
Syntax
public class AccountUserRoutes

Methods

| Improve this Doc View Source

BeginSetProfilePhoto(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • BeginSetProfilePhoto(PhotoSourceArg, AsyncCallback, Object)
    • BeginSetProfilePhoto(SetProfilePhotoArg, AsyncCallback, Object)
    • EndSetProfilePhoto(IAsyncResult)
    • SetProfilePhotoAsync(PhotoSourceArg)
    • SetProfilePhotoAsync(SetProfilePhotoArg)
Back to top Generated by DocFX