EnableAlwaysCategorizeItems method
Sets up a conversation so that any item received within that conversation is always categorized.
Calling this method results in a call to EWS.
The categories that should be stamped on items in the conversation.
Indicates whether the method should return only once enabling this rule and stamping existing items
in the conversation is completely done. If processSynchronously is false, the method returns immediately.
Implementation
Future<void> EnableAlwaysCategorizeItems(
Iterable<String> categories,
bool processSynchronously,
) async {
// ExchangeService.EnableAlwaysCategorizeItemsInConversations
EwsUtilities.ValidateParamCollection(categories, "categories");
(await _ApplyConversationAction(
ConversationActionType.AlwaysCategorize,
[Id!],
processSynchronously,
StringList.fromStrings(categories),
false,
null,
ServiceErrorHandling.ReturnErrors,
))[0].ThrowIfNecessary();
}