Table of Contents

Class UsersResource.ThreadsResource

Namespace
Google.Apis.Gmail.v1
Assembly
Google.Apis.Gmail.v1.dll

The "threads" collection of methods.

public class UsersResource.ThreadsResource
Inheritance
UsersResource.ThreadsResource
Inherited Members

Constructors

ThreadsResource(IClientService)

Constructs a new resource.

public ThreadsResource(IClientService service)

Parameters

service IClientService

Methods

Delete(string, string)

Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer threads.trash instead.

public virtual UsersResource.ThreadsResource.DeleteRequest Delete(string userId, string id)

Parameters

userId string

The user's email address. The special value me can be used to indicate the authenticated user.

id string

ID of the Thread to delete.

Returns

UsersResource.ThreadsResource.DeleteRequest

Get(string, string)

Gets the specified thread.

public virtual UsersResource.ThreadsResource.GetRequest Get(string userId, string id)

Parameters

userId string

The user's email address. The special value me can be used to indicate the authenticated user.

id string

The ID of the thread to retrieve.

Returns

UsersResource.ThreadsResource.GetRequest

List(string)

Lists the threads in the user's mailbox.

public virtual UsersResource.ThreadsResource.ListRequest List(string userId)

Parameters

userId string

The user's email address. The special value me can be used to indicate the authenticated user.

Returns

UsersResource.ThreadsResource.ListRequest

Modify(ModifyThreadRequest, string, string)

Modifies the labels applied to the thread. This applies to all messages in the thread.

public virtual UsersResource.ThreadsResource.ModifyRequest Modify(ModifyThreadRequest body, string userId, string id)

Parameters

body ModifyThreadRequest

The body of the request.

userId string

The user's email address. The special value me can be used to indicate the authenticated user.

id string

The ID of the thread to modify.

Returns

UsersResource.ThreadsResource.ModifyRequest

Trash(string, string)

Moves the specified thread to the trash.

public virtual UsersResource.ThreadsResource.TrashRequest Trash(string userId, string id)

Parameters

userId string

The user's email address. The special value me can be used to indicate the authenticated user.

id string

The ID of the thread to Trash.

Returns

UsersResource.ThreadsResource.TrashRequest

Untrash(string, string)

Removes the specified thread from the trash.

public virtual UsersResource.ThreadsResource.UntrashRequest Untrash(string userId, string id)

Parameters

userId string

The user's email address. The special value me can be used to indicate the authenticated user.

id string

The ID of the thread to remove from Trash.

Returns

UsersResource.ThreadsResource.UntrashRequest