Accessing Picklist Items

Outlook Developer Reference
Accessing Picklist Items

Picklist items are read-only. You cannot add or remove these items programmatically, but you can read all the possible values for all picklist items by accessing the property, as shown in the sample code that follows:

Return a picklist item from a C# application:

  String value = 
bcmRootFolder.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x6621001f").ToString(); 

Where bcmRootFolder is:

  Folder bcmRootFolder = (Folder)folders["Business Contact Manager"]; 

Return a picklist item from a Visual Basic for Applications (VBA) application:

  Dim value as String

value = bcmRootFolder.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x6621001f")

Where bcmRootFolder is:

  Set bcmRootFolder = olFolders("Business Contact Manager") 

See Also

Welcome to the Business Contact Manager for Outlook Developer Guide | Office Developer Center: Outlook 2007