ClearAlwaysAssignCategories Method
The document is archived and information here might be outdated

_Conversation.ClearAlwaysAssignCategories Method

Removes all categories from all items in the conversation and stops the action of always assigning categories to items in the conversation.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

[DispIdAttribute()]
void ClearAlwaysAssignCategories(
	Store Store
)

Parameters

Store
Type: Microsoft.Office.Interop.Outlook.Store

A Store object that represents the store from which categories of items that belong to the conversation should be removed.

If the store specified by the Store parameter represents a non-delivery store such as an archive .pst store, the category removal action will apply to items of the conversation in the default delivery store.

After you apply the ClearAlwaysAssignCategories method on a conversation, the GetAlwaysAssignCategories(Store) method will return Nothing (a null reference (Nothing in Visual Basic) in C#) for that conversation. Categories on existing items are cleared, and no categories are assigned to new items in the conversation.

If the SetAlwaysAssignCategories(String, Store) method has not been applied to a conversation, ClearAlwaysAssignCategories does not remove any categories.

Show:
© 2016 Microsoft