CancelEventArgs Constructor (Boolean)

Initializes a new instance of the CancelEventArgs class that has the Cancel property set to the given value.

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


Public Sub New ( _
    cancel As Boolean _
public CancelEventArgs(
    bool cancel


  • cancel
    Type: System.Boolean
    true to cancel the operation; otherwise, false.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.