RDOCategories object |
RDOCategories collection represents categories from a given store or local machine (depending on the Outlook version and whether the collection is retrieved from the RDOSession or RDOStore2 object).
When accessed though RDOSession.Categories, RDOCategories collection first attempts to read the category list from the default store in the profiles (where Outlook 2007 stores it). If no categories are present in the default store, Redemption tries to read the categories list from the registry if Outlook 2003 or older is installed.
When accessed though RDOStore2.Categories, RDOCategories only reads the list from the store.
Returned by:
RDOSession.Categories, RDOStore2.Categories
The example below lists the master category list in the current profile.
set Session =
CreateObject("Redemption.RDOSession") |
The example below adds a new category to the mailbox of another Exchange user.
set Session =
CreateObject("Redemption.RDOSession") |
Derived from: IDispatch |
|||
|
|||
Methods |
|||
|
|||
Add(Name, Color, ShortcutKey) |
Creates a new RDOCategory object and appends it to the RDOCategories collection. If a category with the given name already exists, the existing RDOCategory object is returned.
Name - string. The name of the new category.
Color - rdoCategoryColor enum, optional. The color for the new category. If no value is specified, the default value is OlCategoryColorNone: olCategoryColorNone =
0xFFFFFFFF
ShortcutKey - rdoCategoryShortcutKey enum. The shortcut key for the new category. If no value is specified, the default value is OlCategoryShortcutKeyNone. olCategoryShortcutKeyNone =
0x00000000
|
||
Item(Index) |
Returns an RDOCategory object from the collection. Index - either an integer index (1 through Count) or the name of the category (string).
|
||
Remove(Index)
|
Removes an RDOCategory object from the collection. Index - either an integer index (1 through Count) or the name of the category (string).
|
||
Properties |
|||
|
|||
Count |
Returns a Long value indicating the count of RDOCategory objects in the collection. Read-only.
|
||
DefaultCategory |
Returns or set the default category (RDOCategory)
|
||
LastSavedTime |
Returns or sets a datetime value that indicates when the RDOCategories collection was last saved.
|
||
|