-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
HandledEventArgs.cs
34 lines (31 loc) · 1.14 KB
/
HandledEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel
{
/// <summary>
/// Provides data for the <see cref='System.ComponentModel.HandledEventArgs.Handled'/>
/// event.
/// </summary>
public class HandledEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref='System.ComponentModel.HandledEventArgs'/> class with
/// handled set to <see langword='false'/>.
/// </summary>
public HandledEventArgs() : this(false)
{
}
/// <summary>
/// Initializes a new instance of the <see cref='System.ComponentModel.HandledEventArgs'/> class with
/// handled set to the given value.
/// </summary>
public HandledEventArgs(bool defaultHandledValue)
{
Handled = defaultHandledValue;
}
/// <summary>
/// Gets or sets a value indicating whether the event was handled in the application's event handler.
/// </summary>
public bool Handled { get; set; }
}
}