Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / HandledEventArgs.cs / 1 / HandledEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
///
/// Provides data for the
/// event.
///
///
[HostProtection(SharedState = true)]
public class HandledEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the event was handled in the application's event handler.
/// 'true' means the application handled the event, 'false' means it didn't.
///
private bool handled;
///
///
/// Initializes a new instance of the class with
/// handled set to .
///
///
public HandledEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// handled set to the given value.
///
///
public HandledEventArgs(bool defaultHandledValue)
: base() {
this.handled = defaultHandledValue;
}
///
///
/// Gets or sets a value
/// indicating whether the event is handled.
///
///
public bool Handled {
get {
return this.handled;
}
set {
this.handled = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
///
/// Provides data for the
/// event.
///
///
[HostProtection(SharedState = true)]
public class HandledEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the event was handled in the application's event handler.
/// 'true' means the application handled the event, 'false' means it didn't.
///
private bool handled;
///
///
/// Initializes a new instance of the class with
/// handled set to .
///
///
public HandledEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// handled set to the given value.
///
///
public HandledEventArgs(bool defaultHandledValue)
: base() {
this.handled = defaultHandledValue;
}
///
///
/// Gets or sets a value
/// indicating whether the event is handled.
///
///
public bool Handled {
get {
return this.handled;
}
set {
this.handled = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FacetEnabledSchemaElement.cs
- ConstraintCollection.cs
- ChineseLunisolarCalendar.cs
- OrderedDictionary.cs
- ValueExpressions.cs
- PeerEndPoint.cs
- ObjectStorage.cs
- TextContainerChangedEventArgs.cs
- WebServiceFaultDesigner.cs
- QuotedPrintableStream.cs
- ManagementPath.cs
- LongValidator.cs
- AsyncCompletedEventArgs.cs
- PrinterUnitConvert.cs
- MemberHolder.cs
- NotImplementedException.cs
- ProtocolElement.cs
- BooleanKeyFrameCollection.cs
- XNodeNavigator.cs
- OutputCacheSettingsSection.cs
- TypeValidationEventArgs.cs
- PersonalizationProviderCollection.cs
- SafeThreadHandle.cs
- SemanticResolver.cs
- SmtpTransport.cs
- KnownTypesProvider.cs
- CodeSnippetTypeMember.cs
- SerialPort.cs
- StylusTip.cs
- ComponentCollection.cs
- BlurBitmapEffect.cs
- TableLayoutSettingsTypeConverter.cs
- ProcessModule.cs
- SecurityDocument.cs
- DataGridCommandEventArgs.cs
- Freezable.cs
- OpacityConverter.cs
- BuildManager.cs
- ResourceSetExpression.cs
- PkcsMisc.cs
- ButtonFieldBase.cs
- BooleanAnimationBase.cs
- DetailsViewUpdateEventArgs.cs
- DecoderFallbackWithFailureFlag.cs
- Interfaces.cs
- ModifierKeysConverter.cs
- PasswordPropertyTextAttribute.cs
- TransportOutputChannel.cs
- ChangePassword.cs
- HtmlElementEventArgs.cs
- PropertyAccessVisitor.cs
- ProtectedConfiguration.cs
- jithelpers.cs
- CompilerInfo.cs
- ResourceSetExpression.cs
- CompatibleComparer.cs
- ContextQuery.cs
- BitArray.cs
- CultureSpecificStringDictionary.cs
- SmtpTransport.cs
- JoinGraph.cs
- _AuthenticationState.cs
- RadioButtonList.cs
- KeyPullup.cs
- DiscardableAttribute.cs
- SqlClientPermission.cs
- OracleConnectionString.cs
- MessageBox.cs
- CapiSafeHandles.cs
- RuleSetBrowserDialog.cs
- AttributeQuery.cs
- DelegatingConfigHost.cs
- MsmqElementBase.cs
- QueryStringParameter.cs
- CompositeControl.cs
- Solver.cs
- TextServicesManager.cs
- TextRangeEditTables.cs
- HttpModulesSection.cs
- WindowProviderWrapper.cs
- ObjectManager.cs
- DuplicateWaitObjectException.cs
- PerformanceCounterPermissionEntryCollection.cs
- WeakReference.cs
- RoutedEvent.cs
- DragEventArgs.cs
- AffineTransform3D.cs
- CreateDataSourceDialog.cs
- Transform3D.cs
- CurrentTimeZone.cs
- SessionPageStateSection.cs
- XmlSerializationReader.cs
- BrowserCapabilitiesCodeGenerator.cs
- SyntaxCheck.cs
- DataGridViewCellValueEventArgs.cs
- XmlSchemaCollection.cs
- StorageSetMapping.cs
- SmtpNtlmAuthenticationModule.cs
- XslTransform.cs
- DataListItemEventArgs.cs