IEditableCollectionView::CancelNew Method ()

 

Ends the add transaction and discards the pending new item.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

void CancelNew()

The following example displays a form that prompts the user to add a new item. If the user submits the form, the example calls CommitNew to add the item to the collection. If the user cancels the form, the example calls CancelNew to discard the item. For the entire sample, see Changing a Collection by Using IEditableCollectionView Sample.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: