Class UsersResource.ThreadsResource
The "threads" collection of methods.
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.ThreadsResource
Constructors
ThreadsResource(IClientService)
Constructs a new resource.
Declaration
public ThreadsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(string, string)
Immediately and permanently deletes the specified thread. Any messages that belong to the thread are
also deleted. This operation cannot be undone. Prefer threads.trash instead.
Declaration
public virtual UsersResource.ThreadsResource.DeleteRequest Delete(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
| string | id | ID of the Thread to delete. |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.DeleteRequest |
Get(string, string)
Gets the specified thread.
Declaration
public virtual UsersResource.ThreadsResource.GetRequest Get(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
| string | id | The ID of the thread to retrieve. |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.GetRequest |
List(string)
Lists the threads in the user's mailbox.
Declaration
public virtual UsersResource.ThreadsResource.ListRequest List(string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.ListRequest |
Modify(ModifyThreadRequest, string, string)
Modifies the labels applied to the thread. This applies to all messages in the thread.
Declaration
public virtual UsersResource.ThreadsResource.ModifyRequest Modify(ModifyThreadRequest body, string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| ModifyThreadRequest | body | The body of the request. |
| string | userId | The user's email address. The special value |
| string | id | The ID of the thread to modify. |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.ModifyRequest |
Trash(string, string)
Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash.
Declaration
public virtual UsersResource.ThreadsResource.TrashRequest Trash(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
| string | id | The ID of the thread to Trash. |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.TrashRequest |
Untrash(string, string)
Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash.
Declaration
public virtual UsersResource.ThreadsResource.UntrashRequest Untrash(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
| string | id | The ID of the thread to remove from Trash. |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.UntrashRequest |