Aspose::Email::Clients::Graph::OutlookCategory Class Reference

Represents a category by which a user can group Outlook items such as messages and events. The user defines categories in a master list, and can apply one or more of these user-defined categories to an item. https://docs.microsoft.com/en-us/graph/api/resources/outlookcategory?view=graph-rest-1.0 More...

Inherits Object.

Public Member Functions

System::String get_Id () const
 Category identifier More...
 
void set_Id (System::String value)
 Category identifier More...
 
System::String get_DisplayName () const
 A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. More...
 
void set_DisplayName (System::String value)
 A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. More...
 
System::String get_Color () const
 String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. The possible values for color are pre-set constants such as None, preset0 and preset1. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in. More...
 
void set_Color (System::String value)
 String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. The possible values for color are pre-set constants such as None, preset0 and preset1. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in. More...
 
CategoryPreset get_Preset ()
 A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in. More...
 
void set_Preset (CategoryPreset value)
 A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in. More...
 
 OutlookCategory ()
 Initializes a new instance of the OutlookCategory class. More...
 
 OutlookCategory (System::String displayName, CategoryPreset preset)
 Initializes a new instance of the OutlookCategory class. More...
 
 OutlookCategory (System::String itemId, System::String displayName, CategoryPreset preset)
 Initializes a new instance of the OutlookCategory class. More...
 
System::String ToString () const override
 Returns a string that represents the current object. More...
 

Static Public Attributes

static const System::String ServerPath
 Outlook category path More...
 

Protected Member Functions

virtual ~OutlookCategory ()
 

Friends

class Aspose::Email::Clients::Graph::V1::Commands::CreateCategoryCommand
 
class Aspose::Email::Clients::Graph::V1::Commands::GetCategoryCommand
 
class Aspose::Email::Clients::Graph::V1::Commands::ListCategoriesCommand
 
class Aspose::Email::Clients::Graph::V1::Commands::UpdateCategoryCommand
 

Detailed Description

Represents a category by which a user can group Outlook items such as messages and events. The user defines categories in a master list, and can apply one or more of these user-defined categories to an item. https://docs.microsoft.com/en-us/graph/api/resources/outlookcategory?view=graph-rest-1.0

Constructor & Destructor Documentation

◆ OutlookCategory() [1/3]

Aspose::Email::Clients::Graph::OutlookCategory::OutlookCategory ( )

Initializes a new instance of the OutlookCategory class.

◆ OutlookCategory() [2/3]

Aspose::Email::Clients::Graph::OutlookCategory::OutlookCategory ( System::String  displayName,
CategoryPreset  preset 
)

Initializes a new instance of the OutlookCategory class.

Parameters
displayNameA unique name that identifies a category in the user's mailbox.
presetpre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors

◆ OutlookCategory() [3/3]

Aspose::Email::Clients::Graph::OutlookCategory::OutlookCategory ( System::String  itemId,
System::String  displayName,
CategoryPreset  preset 
)

Initializes a new instance of the OutlookCategory class.

Parameters
itemIdItem id
displayNameA unique name that identifies a category in the user's mailbox.
presetpre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors

◆ ~OutlookCategory()

virtual Aspose::Email::Clients::Graph::OutlookCategory::~OutlookCategory ( )
protectedvirtual

Member Function Documentation

◆ get_Color()

System::String Aspose::Email::Clients::Graph::OutlookCategory::get_Color ( ) const

String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. The possible values for color are pre-set constants such as None, preset0 and preset1. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.

◆ get_DisplayName()

System::String Aspose::Email::Clients::Graph::OutlookCategory::get_DisplayName ( ) const

A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed.

◆ get_Id()

System::String Aspose::Email::Clients::Graph::OutlookCategory::get_Id ( ) const

Category identifier

◆ get_Preset()

CategoryPreset Aspose::Email::Clients::Graph::OutlookCategory::get_Preset ( )

A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.

◆ set_Color()

void Aspose::Email::Clients::Graph::OutlookCategory::set_Color ( System::String  value)

String representation of a pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. The possible values for color are pre-set constants such as None, preset0 and preset1. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.

◆ set_DisplayName()

void Aspose::Email::Clients::Graph::OutlookCategory::set_DisplayName ( System::String  value)

A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed.

◆ set_Id()

void Aspose::Email::Clients::Graph::OutlookCategory::set_Id ( System::String  value)

Category identifier

◆ set_Preset()

void Aspose::Email::Clients::Graph::OutlookCategory::set_Preset ( CategoryPreset  value)

A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. Each pre-set constant is further mapped to a color; the actual color is dependent on the Outlook client that the categories are being displayed in.

◆ ToString()

System::String Aspose::Email::Clients::Graph::OutlookCategory::ToString ( ) const
override

Returns a string that represents the current object.

Returns
A string that represents the current object.

Friends And Related Function Documentation

◆ Aspose::Email::Clients::Graph::V1::Commands::CreateCategoryCommand

friend class Aspose::Email::Clients::Graph::V1::Commands::CreateCategoryCommand
friend

◆ Aspose::Email::Clients::Graph::V1::Commands::GetCategoryCommand

friend class Aspose::Email::Clients::Graph::V1::Commands::GetCategoryCommand
friend

◆ Aspose::Email::Clients::Graph::V1::Commands::ListCategoriesCommand

friend class Aspose::Email::Clients::Graph::V1::Commands::ListCategoriesCommand
friend

◆ Aspose::Email::Clients::Graph::V1::Commands::UpdateCategoryCommand

friend class Aspose::Email::Clients::Graph::V1::Commands::UpdateCategoryCommand
friend

Member Data Documentation

◆ ServerPath

const System::String Aspose::Email::Clients::Graph::OutlookCategory::ServerPath
static

Outlook category path