activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity activities

Last updated Feb 19, 2026

SetCategories

Assigns categories to a specified mail message.

Namespace: UiPath.Mail.Activities.Api

Assembly: UiPath.Mail.Activities.Api (in UiPath.Mail.Activities.Api.dll)

SetCategories(MailMessage, IReadOnlyCollection<string>)

void SetCategories(
	MailMessage message,
	IReadOnlyCollection<string> categories
)
void SetCategories(
	MailMessage message,
	IReadOnlyCollection<string> categories
)

message MailMessage : The MailMessage variable that contains the message to assign categories.

categories IReadOnlyCollection&lt;String&gt; : The categories to be assigned to the specified mail message. If not provided, all categories are cleared.

  • SetCategories(MailMessage, IReadOnlyCollection<string>)

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.