Class ContactsUserRoutes
The routes for the Dropbox.Api.Contacts namespace
Inheritance
Inherited Members
Namespace: Dropbox.Api.Contacts.Routes
Assembly: Dropbox.Api.dll
Syntax
public class ContactsUserRoutes
Methods
| Improve this Doc View SourceBeginDeleteManualContacts(AsyncCallback, Object)
Begins an asynchronous send to the delete manual contacts route.
Declaration
public IAsyncResult BeginDeleteManualContacts(AsyncCallback callback, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| 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. |
BeginDeleteManualContactsBatch(DeleteManualContactsArg, AsyncCallback, Object)
Begins an asynchronous send to the delete manual contacts batch route.
Declaration
public IAsyncResult BeginDeleteManualContactsBatch(DeleteManualContactsArg deleteManualContactsArg, AsyncCallback callback, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteManualContactsArg | deleteManualContactsArg | 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. |
BeginDeleteManualContactsBatch(IEnumerable<String>, AsyncCallback, Object)
Begins an asynchronous send to the delete manual contacts batch route.
Declaration
public IAsyncResult BeginDeleteManualContactsBatch(IEnumerable<string> emailAddresses, AsyncCallback callback, object callbackState = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.String> | emailAddresses | List of manually added contacts to be deleted. |
| 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. |
DeleteManualContactsAsync()
Removes all manually added contacts. You'll still keep contacts who are on your team or who you imported. New contacts will be added when you share.
Declaration
public Task DeleteManualContactsAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | The task that represents the asynchronous send operation. |
DeleteManualContactsBatchAsync(DeleteManualContactsArg)
Removes manually added contacts from the given list.
Declaration
public Task DeleteManualContactsBatchAsync(DeleteManualContactsArg deleteManualContactsArg)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteManualContactsArg | deleteManualContactsArg | The request parameters |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | The task that represents the asynchronous send operation. |
Exceptions
| Type | Condition |
|---|---|
| ApiException<TError> | Thrown if there is an error processing the request; This will contain a DeleteManualContactsError. |
DeleteManualContactsBatchAsync(IEnumerable<String>)
Removes manually added contacts from the given list.
Declaration
public Task DeleteManualContactsBatchAsync(IEnumerable<string> emailAddresses)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.String> | emailAddresses | List of manually added contacts to be deleted. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | The task that represents the asynchronous send operation. |
Exceptions
| Type | Condition |
|---|---|
| ApiException<TError> | Thrown if there is an error processing the request; This will contain a DeleteManualContactsError. |
EndDeleteManualContacts(IAsyncResult)
Waits for the pending asynchronous send to the delete manual contacts route to complete
Declaration
public void EndDeleteManualContacts(IAsyncResult asyncResult)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
EndDeleteManualContactsBatch(IAsyncResult)
Waits for the pending asynchronous send to the delete manual contacts batch route to complete
Declaration
public void EndDeleteManualContactsBatch(IAsyncResult asyncResult)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Exceptions
| Type | Condition |
|---|---|
| ApiException<TError> | Thrown if there is an error processing the request; This will contain a DeleteManualContactsError. |