Share via


_Category.CategoryID Property

Returns a String (string in C#) value that represents the unique identifier for the Category object. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property CategoryID As String
    Get
'Usage
Dim instance As _Category
Dim value As String

value = instance.CategoryID
[DispIdAttribute()]
string CategoryID { get; }

Property Value

Type: System.String

Remarks

Because the Name property of a Category object can be changed either programmatically or by user action, each Category object is uniquely identified by a globally unique identifier (GUID), assigned to the object, that can be retrieved using this property. The GUID is presented as a string using the following format:

{00000000-0000-0000-0000-000000000000}

See Also

Reference

_Category Interface

_Category Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Enumerate and Add Categories