Share via


PimItemCollection.AddNew Method

3/29/2010

Adds a new PIM item to the collection.

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

Syntax

public Object AddNew ()
'Declaration
Public Function AddNew As Object

Return Value

The item added to the list.

Remarks

This method is supported only if AllowNew is true; otherwise, a NotSupportedException is thrown. Implementing this method means that the IBindingList list must understand the type of objects to add to the list and must understand how to create a new instance of that type. For example, if you have a collection of myCustomer objects, the AddNew method should add a new myCustomer object to the list. The base is used to throw a generic message when AllowNew is false.

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

PimItemCollection Class
PimItemCollection Members
Microsoft.WindowsMobile.PocketOutlook Namespace