Class FilePropertiesTeamRoutes
The routes for the Dropbox.
Inheritance
Inherited Members
Namespace: Dropbox.Api.FileProperties.Routes
Assembly: Dropbox.Api.dll
Syntax
public class FilePropertiesTeamRoutes
Methods
| Improve this Doc View SourceBeginTemplatesAddForTeam(AddTemplateArg, AsyncCallback, Object)
Begins an asynchronous send to the templates add for team route.
Declaration
public IAsyncResult BeginTemplatesAddForTeam(AddTemplateArg addTemplateArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Add |
addTemplateArg | 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. |
BeginTemplatesAddForTeam(String, String, IEnumerable<PropertyFieldTemplate>, AsyncCallback, Object)
Begins an asynchronous send to the templates add for team route.
Declaration
public IAsyncResult BeginTemplatesAddForTeam(string name, string description, IEnumerable<PropertyFieldTemplate> fields, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Display name for the template. Template names can be up to 256 bytes. |
System. |
description | Description for the template. Template descriptions can be up to 1024 bytes. |
System. |
fields | Definitions of the property fields associated with this template. There can be up to 32 properties in a single 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. |
BeginTemplatesGetForTeam(GetTemplateArg, AsyncCallback, Object)
Begins an asynchronous send to the templates get for team route.
Declaration
public IAsyncResult BeginTemplatesGetForTeam(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. |
BeginTemplatesGetForTeam(String, AsyncCallback, Object)
Begins an asynchronous send to the templates get for team route.
Declaration
public IAsyncResult BeginTemplatesGetForTeam(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. |
BeginTemplatesListForTeam(AsyncCallback, Object)
Begins an asynchronous send to the templates list for team route.
Declaration
public IAsyncResult BeginTemplatesListForTeam(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. |
BeginTemplatesRemoveForTeam(RemoveTemplateArg, AsyncCallback, Object)
Begins an asynchronous send to the templates remove for team route.
Declaration
public IAsyncResult BeginTemplatesRemoveForTeam(RemoveTemplateArg removeTemplateArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Remove |
removeTemplateArg | 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. |
BeginTemplatesRemoveForTeam(String, AsyncCallback, Object)
Begins an asynchronous send to the templates remove for team route.
Declaration
public IAsyncResult BeginTemplatesRemoveForTeam(string templateId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
templateId | An identifier 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. |
BeginTemplatesUpdateForTeam(UpdateTemplateArg, AsyncCallback, Object)
Begins an asynchronous send to the templates update for team route.
Declaration
public IAsyncResult BeginTemplatesUpdateForTeam(UpdateTemplateArg updateTemplateArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Update |
updateTemplateArg | 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. |
BeginTemplatesUpdateForTeam(String, String, String, IEnumerable<PropertyFieldTemplate>, AsyncCallback, Object)
Begins an asynchronous send to the templates update for team route.
Declaration
public IAsyncResult BeginTemplatesUpdateForTeam(string templateId, string name = null, string description = null, IEnumerable<PropertyFieldTemplate> addFields = null, AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
templateId | An identifier for template added by See Templates |
System. |
name | A display name for the template. template names can be up to 256 bytes. |
System. |
description | Description for the new template. Template descriptions can be up to 1024 bytes. |
System. |
addFields | Property field templates to be added to the group template. There can be up to 32 properties in a single 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. |
EndTemplatesAddForTeam(IAsyncResult)
Waits for the pending asynchronous send to the templates add for team route to complete
Declaration
public AddTemplateResult EndTemplatesAddForTeam(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Add |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Modify |
EndTemplatesGetForTeam(IAsyncResult)
Waits for the pending asynchronous send to the templates get for team route to complete
Declaration
public GetTemplateResult EndTemplatesGetForTeam(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 |
EndTemplatesListForTeam(IAsyncResult)
Waits for the pending asynchronous send to the templates list for team route to complete
Declaration
public ListTemplateResult EndTemplatesListForTeam(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 |
EndTemplatesRemoveForTeam(IAsyncResult)
Waits for the pending asynchronous send to the templates remove for team route to complete
Declaration
public void EndTemplatesRemoveForTeam(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 Template |
EndTemplatesUpdateForTeam(IAsyncResult)
Waits for the pending asynchronous send to the templates update for team route to complete
Declaration
public UpdateTemplateResult EndTemplatesUpdateForTeam(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Update |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Modify |
TemplatesAddForTeamAsync(AddTemplateArg)
Add a template associated with a team. See Properties
Note: this endpoint will create team-owned templates.
Declaration
public Task<AddTemplateResult> TemplatesAddForTeamAsync(AddTemplateArg addTemplateArg)
Parameters
Type | Name | Description |
---|---|---|
Add |
addTemplateArg | 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 Modify |
TemplatesAddForTeamAsync(String, String, IEnumerable<PropertyFieldTemplate>)
Add a template associated with a team. See Properties
Note: this endpoint will create team-owned templates.
Declaration
public Task<AddTemplateResult> TemplatesAddForTeamAsync(string name, string description, IEnumerable<PropertyFieldTemplate> fields)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Display name for the template. Template names can be up to 256 bytes. |
System. |
description | Description for the template. Template descriptions can be up to 1024 bytes. |
System. |
fields | Definitions of the property fields associated with this template. There can be up to 32 properties in a single template. |
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 Modify |
TemplatesGetForTeamAsync(GetTemplateArg)
Get the schema for a specified template.
Declaration
public Task<GetTemplateResult> TemplatesGetForTeamAsync(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 |
TemplatesGetForTeamAsync(String)
Get the schema for a specified template.
Declaration
public Task<GetTemplateResult> TemplatesGetForTeamAsync(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 |
TemplatesListForTeamAsync()
Get the template identifiers for a team. To get the schema of each template
use Templates
Declaration
public Task<ListTemplateResult> TemplatesListForTeamAsync()
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 |
TemplatesRemoveForTeamAsync(RemoveTemplateArg)
Permanently removes the specified template created from Templates
Declaration
public Task TemplatesRemoveForTeamAsync(RemoveTemplateArg removeTemplateArg)
Parameters
Type | Name | Description |
---|---|---|
Remove |
removeTemplateArg | 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 Template |
TemplatesRemoveForTeamAsync(String)
Permanently removes the specified template created from Templates
Declaration
public Task TemplatesRemoveForTeamAsync(string templateId)
Parameters
Type | Name | Description |
---|---|---|
System. |
templateId | An identifier 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 Template |
TemplatesUpdateForTeamAsync(UpdateTemplateArg)
Update a template associated with a team. This route can update the template name, the template description and add optional properties to templates.
Declaration
public Task<UpdateTemplateResult> TemplatesUpdateForTeamAsync(UpdateTemplateArg updateTemplateArg)
Parameters
Type | Name | Description |
---|---|---|
Update |
updateTemplateArg | 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 Modify |
TemplatesUpdateForTeamAsync(String, String, String, IEnumerable<PropertyFieldTemplate>)
Update a template associated with a team. This route can update the template name, the template description and add optional properties to templates.
Declaration
public Task<UpdateTemplateResult> TemplatesUpdateForTeamAsync(string templateId, string name = null, string description = null, IEnumerable<PropertyFieldTemplate> addFields = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
templateId | An identifier for template added by See Templates |
System. |
name | A display name for the template. template names can be up to 256 bytes. |
System. |
description | Description for the new template. Template descriptions can be up to 1024 bytes. |
System. |
addFields | Property field templates to be added to the group template. There can be up to 32 properties in a single template. |
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 Modify |