Class UsersResource.ThreadsResource
The "threads" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class 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. This operation cannot be undone. Prefer threads.trash instead.
Declaration
public virtual UsersResource.ThreadsResource.DeleteRequest Delete(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
| System.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 |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
| System.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 |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
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. |
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
| System.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.
Declaration
public virtual UsersResource.ThreadsResource.TrashRequest Trash(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
| System.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.
Declaration
public virtual UsersResource.ThreadsResource.UntrashRequest Untrash(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
| System.String | id | The ID of the thread to remove from Trash. |
Returns
| Type | Description |
|---|---|
| UsersResource.ThreadsResource.UntrashRequest |