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
- XNameTypeConverter.cs
- ImpersonateTokenRef.cs
- GridEntryCollection.cs
- _CacheStreams.cs
- WhitespaceSignificantCollectionAttribute.cs
- SpecialNameAttribute.cs
- ComboBoxRenderer.cs
- SiteOfOriginContainer.cs
- CompilationPass2Task.cs
- LinkButton.cs
- PresentationSource.cs
- SafeHandle.cs
- SqlBuilder.cs
- VarRefManager.cs
- TrustSection.cs
- PointIndependentAnimationStorage.cs
- MsmqIntegrationInputMessage.cs
- ToolStripRendererSwitcher.cs
- GridItemCollection.cs
- ByteConverter.cs
- RoutedEventConverter.cs
- HtmlMeta.cs
- HostProtectionPermission.cs
- DockProviderWrapper.cs
- CodeMethodReturnStatement.cs
- RowUpdatedEventArgs.cs
- ErrorFormatter.cs
- RichTextBox.cs
- TargetInvocationException.cs
- CompositionCommandSet.cs
- TextDecorationLocationValidation.cs
- PropertyGridCommands.cs
- XmlMembersMapping.cs
- ComplexTypeEmitter.cs
- BoolExpr.cs
- ConfigurationValidatorAttribute.cs
- AnnotationService.cs
- MLangCodePageEncoding.cs
- DesignerExtenders.cs
- TargetControlTypeCache.cs
- DataViewListener.cs
- TableItemPattern.cs
- MethodImplAttribute.cs
- CachedTypeface.cs
- XmlSchemaProviderAttribute.cs
- EventHandlers.cs
- GridItemProviderWrapper.cs
- TimersDescriptionAttribute.cs
- SHA1Managed.cs
- PrintDialog.cs
- GridItemPattern.cs
- DateTimeParse.cs
- InstanceLockLostException.cs
- ObjectDataSourceStatusEventArgs.cs
- SelectiveScrollingGrid.cs
- X509CertificateChain.cs
- CTreeGenerator.cs
- log.cs
- ApplicationException.cs
- AssertFilter.cs
- ResolveNameEventArgs.cs
- BindUriHelper.cs
- WmlListAdapter.cs
- IconConverter.cs
- Mappings.cs
- Point3DAnimationUsingKeyFrames.cs
- PageThemeParser.cs
- CachedBitmap.cs
- SortedSetDebugView.cs
- XmlSchemaInclude.cs
- HandlerFactoryWrapper.cs
- ConnectionsZone.cs
- OdbcError.cs
- SqlUdtInfo.cs
- ScrollChrome.cs
- SystemWebSectionGroup.cs
- QueryAccessibilityHelpEvent.cs
- RoleGroupCollectionEditor.cs
- DXD.cs
- SelectionItemProviderWrapper.cs
- SignatureToken.cs
- SqlConnection.cs
- AppDomainUnloadedException.cs
- BinaryFormatterWriter.cs
- XmlMemberMapping.cs
- AppDomainGrammarProxy.cs
- DbCommandTree.cs
- MachineKeySection.cs
- Point3DCollection.cs
- SafeHandles.cs
- WebPartRestoreVerb.cs
- DispatcherTimer.cs
- FixedDocumentSequencePaginator.cs
- Transform.cs
- ToolStripSplitButton.cs
- DataGridViewControlCollection.cs
- EdmConstants.cs
- SoapSchemaMember.cs
- ImageBrush.cs
- SqlTriggerAttribute.cs