Share via


PimPropertySet.Item Property (ContactProperty)

3/29/2010

Gets or sets a Contact property value.

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

Syntax

public Object this [
    ContactProperty propertyName
] { get; set; }
'Declaration
Public Default Property Item ( _
    propertyName As ContactProperty _
) As Object

Parameters

  • propertyName
    A propertyName from the ContactProperty enumeration.

Remarks

When setting a property value, an ArgumentException will be thrown if the argument type is not supported, or if the property name exists but is of a different type than that of the argument.

When getting a property value, the property with the specified name is retrieved. You must cast the returned object to the appropriate property type. If the returned object is to be casted into a value type, you must verify that the returned object is not null before the casting.

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

PimPropertySet Class
PimPropertySet Members
Microsoft.WindowsMobile.PocketOutlook Namespace