次の方法で共有


_Conversation.GetAlwaysAssignCategories Method

Returns a String (string in C#) that indicates the category or categories that are assigned to all new items that arrive in the conversation.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetAlwaysAssignCategories ( _
    Store As Store _
) As String
'Usage
Dim instance As _Conversation
Dim Store As Store
Dim returnValue As String

returnValue = instance.GetAlwaysAssignCategories(Store)
[DispIdAttribute()]
string GetAlwaysAssignCategories(
    Store Store
)

Parameters

Return Value

Type: System.String
A String (string in C#) that contains one or more categories that are assigned to items in the conversation.

Remarks

Multiple categories are delimited by commas in the string of category names that this property returns. To convert the string of category names to an array of category names, use the Microsoft Visual Basic Split function.

If the store specified by the Store parameter represents a non-delivery store such as an archive .pst store, the method returns a string of categories that are applied to conversation items in the default delivery store.

If the SetAlwaysAssignCategories(String, Store) method has not been applied to a conversation, GetAlwaysAssignCategories returns Nothing (a null reference (Nothing in Visual Basic) in C#).

To stop the action of always assigning categories, use the ClearAlwaysAssignCategories(Store) method. After the ClearAlwaysAssignCategories method has been called, GetAlwaysAssignCategories returns an empty string.

See Also

Reference

_Conversation Interface

_Conversation Members

Microsoft.Office.Interop.Outlook Namespace