How to: Add a Definition for a New User-Defined Field
Applies to: Office 2010 | Outlook 2010 | Visual Studio
When you add a user-defined field to a Microsoft Outlook item, you add a field definition to the corresponding PropertyDefinition stream structure. Use the following procedure to add a new field definition to a PropertyDefinition stream structure.
To add a definition for a new user-defined field
Copy the existing field definitions of the PropertyDefinition stream structure to a new field definitions array.
If any existing field definitions are in the PropDefV1 format, convert them to the PropDefV2 format. For more information about field definition formats, see PropertyDefinition Stream Structure and FieldDefinition Stream Structure.
Create a definition of the new user-defined field in the PropDefV2 format and add it to the array.
Set the Version element of the PropertyDefinition stream structure as 0x0103, if the Version element has not been set to that value.
Increment the FieldDefinitionCount element by 1.
Store the array as the value of the FieldDefinitions element.