PimItem.Properties Property
3/29/2010
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)
Syntax
public PimPropertySet Properties { get; }
'Declaration
Public ReadOnly Property Properties As PimPropertySet
Example
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";
mySession.Contacts.Items.Add(myContact);
// 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
Reference
PimItem Class
PimItem Members
Microsoft.WindowsMobile.PocketOutlook Namespace