Class UsersResource.LabelsResource
The "labels" collection of methods.
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.LabelsResource
Constructors
LabelsResource(IClientService)
Constructs a new resource.
Declaration
public LabelsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Label, string)
Creates a label. For more information, see Manage labels.
Declaration
public virtual UsersResource.LabelsResource.CreateRequest Create(Label body, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| Label | body | The body of the request. |
| string | userId | The user's email address. The special value |
Returns
| Type | Description |
|---|---|
| UsersResource.LabelsResource.CreateRequest |
Delete(string, string)
Immediately and permanently deletes the specified label and removes it from any messages and threads that it's applied to. For more information, see Manage labels.
Declaration
public virtual UsersResource.LabelsResource.DeleteRequest Delete(string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
| string | id | The ID of the label to delete. |
Returns
| Type | Description |
|---|---|
| UsersResource.LabelsResource.DeleteRequest |
Get(string, string)
Gets the specified label. For more information, see Manage labels.
Declaration
public virtual UsersResource.LabelsResource.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 label to retrieve. |
Returns
| Type | Description |
|---|---|
| UsersResource.LabelsResource.GetRequest |
List(string)
Lists all labels in the user's mailbox. For more information, see Manage labels.
Declaration
public virtual UsersResource.LabelsResource.ListRequest List(string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The user's email address. The special value |
Returns
| Type | Description |
|---|---|
| UsersResource.LabelsResource.ListRequest |
Patch(Label, string, string)
Patch the specified label. For more information, see Manage labels.
Declaration
public virtual UsersResource.LabelsResource.PatchRequest Patch(Label body, string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| Label | body | The body of the request. |
| string | userId | The user's email address. The special value |
| string | id | The ID of the label to update. |
Returns
| Type | Description |
|---|---|
| UsersResource.LabelsResource.PatchRequest |
Update(Label, string, string)
Updates the specified label. For more information, see Manage labels.
Declaration
public virtual UsersResource.LabelsResource.UpdateRequest Update(Label body, string userId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| Label | body | The body of the request. |
| string | userId | The user's email address. The special value |
| string | id | The ID of the label to update. |
Returns
| Type | Description |
|---|---|
| UsersResource.LabelsResource.UpdateRequest |