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

Productivity activities

Last updated Mar 13, 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?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated