Table of Contents

Class UsersResource.LabelsResource

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

The "labels" collection of methods.

public class UsersResource.LabelsResource
Inheritance
UsersResource.LabelsResource
Inherited Members

Constructors

LabelsResource(IClientService)

Constructs a new resource.

public LabelsResource(IClientService service)

Parameters

service IClientService

Methods

Create(Label, string)

Creates a new label.

public virtual UsersResource.LabelsResource.CreateRequest Create(Label body, string userId)

Parameters

body Label

The body of the request.

userId string

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

Returns

UsersResource.LabelsResource.CreateRequest

Delete(string, string)

Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.

public virtual UsersResource.LabelsResource.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

The ID of the label to delete.

Returns

UsersResource.LabelsResource.DeleteRequest

Get(string, string)

Gets the specified label.

public virtual UsersResource.LabelsResource.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 label to retrieve.

Returns

UsersResource.LabelsResource.GetRequest

List(string)

Lists all labels in the user's mailbox.

public virtual UsersResource.LabelsResource.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.LabelsResource.ListRequest

Patch(Label, string, string)

Patch the specified label.

public virtual UsersResource.LabelsResource.PatchRequest Patch(Label body, string userId, string id)

Parameters

body Label

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 label to update.

Returns

UsersResource.LabelsResource.PatchRequest

Update(Label, string, string)

Updates the specified label.

public virtual UsersResource.LabelsResource.UpdateRequest Update(Label body, string userId, string id)

Parameters

body Label

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 label to update.

Returns

UsersResource.LabelsResource.UpdateRequest