| Visual Basic (Declaration) | |
|---|---|
Public Sub CancelNew() | |
| C# | |
|---|---|
public void CancelNew() | |
| Exception | Description |
|---|---|
| System.InvalidCastException | When manually handling the item-insertion process the CreatingNewItem, CommittingNewItem, and CancelingNewItem events must all be handled. |
Supported Frameworks: Microsoft .NET Framework version 3.5