PimItem.Properties Property


Gets the PimPropertySet. This object is used for creating custom PIM item properties.

Namespace: Microsoft.WindowsMobile.PocketOutlook
Assembly: Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)


public PimPropertySet Properties { get; }
Public ReadOnly Property Properties As PimPropertySet


You can use Properties to access information on the PimItem or its folder. In this example, a few properties in a contact are set, and then some properties are read.

using (OutlookSession mySession = new OutlookSession())
    // Create a contact in the Business Category.
    Contact myContact = new Contact();
    myContact.Properties[ContactProperty.FirstName] = "Eric";
    myContact.Properties[ContactProperty.LastName] = "Parkinson";
    myContact.Properties[ContactProperty.Categories] = "Business";
    // Get the contact's first name.
    string contactFirstName = myContact.Properties[ContactProperty.FirstName].ToString();
    // Get the contact's categories, in this case "Business".
    string contactCategory = myContact.Properties[ContactProperty.Categories].ToString();
    // Get the contacts folder categories.
    // This will include all the categories in the contacts folder.
    string contactFolderCategories = myContact.Properties[ContactProperty.FolderCategories].ToString();

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also


PimItem Class
PimItem Members
Microsoft.WindowsMobile.PocketOutlook Namespace