Handled Property
Collapse the table of content
Expand the table of content

ContractFailedEventArgs.Handled Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether the Contract.ContractFailed event has been handled.

Namespace:  System.Diagnostics.Contracts
Assembly:  mscorlib (in mscorlib.dll)

public bool Handled { get; }

Property Value

Type: System.Boolean
true if the event has been handled; otherwise, false.

If the Contract.ContractFailed event has not been handled, the debugger is notified. If no debugger is attached, an Assert dialog box is displayed.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft