Show / Hide Table of Contents

Class Label

Labels are used to categorize messages and threads within the user's mailbox.

Inheritance
System.Object
Label
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Gmail.v1.Data
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class Label : IDirectResponseSchema

Properties

Color

The color to assign to the label. Color is only available for labels that have their type set to user.

Declaration
[JsonProperty("color")]
public virtual LabelColor Color { get; set; }
Property Value
Type Description
LabelColor

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Id

The immutable ID of the label.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
System.String

LabelListVisibility

The visibility of the label in the label list in the Gmail web interface.

Declaration
[JsonProperty("labelListVisibility")]
public virtual string LabelListVisibility { get; set; }
Property Value
Type Description
System.String

MessageListVisibility

The visibility of the label in the message list in the Gmail web interface.

Declaration
[JsonProperty("messageListVisibility")]
public virtual string MessageListVisibility { get; set; }
Property Value
Type Description
System.String

MessagesTotal

The total number of messages with the label.

Declaration
[JsonProperty("messagesTotal")]
public virtual int? MessagesTotal { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

MessagesUnread

The number of unread messages with the label.

Declaration
[JsonProperty("messagesUnread")]
public virtual int? MessagesUnread { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Name

The display name of the label.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
System.String

ThreadsTotal

The total number of threads with the label.

Declaration
[JsonProperty("threadsTotal")]
public virtual int? ThreadsTotal { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

ThreadsUnread

The number of unread threads with the label.

Declaration
[JsonProperty("threadsUnread")]
public virtual int? ThreadsUnread { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Type

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads.

Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
Back to top