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
- HelpInfo.cs
- ContactManager.cs
- OdbcConnectionString.cs
- WindowsRichEdit.cs
- DefaultValueTypeConverter.cs
- Int32Converter.cs
- ToolStripPanelRenderEventArgs.cs
- Oid.cs
- SegmentInfo.cs
- ToolStripDropDown.cs
- SHA512.cs
- GridViewSortEventArgs.cs
- DependencyPropertyHelper.cs
- PassportPrincipal.cs
- Point3DAnimationBase.cs
- Transactions.cs
- Grid.cs
- BrowserDefinitionCollection.cs
- DriveInfo.cs
- Mapping.cs
- nulltextnavigator.cs
- DesignerDataView.cs
- UriTemplateTrieLocation.cs
- PathTooLongException.cs
- AppDomainGrammarProxy.cs
- TriState.cs
- RichTextBoxAutomationPeer.cs
- ToolStripSeparator.cs
- CompositeActivityValidator.cs
- webclient.cs
- Constants.cs
- SessionIDManager.cs
- ListDesigner.cs
- StubHelpers.cs
- DefaultParameterValueAttribute.cs
- FormViewDeletedEventArgs.cs
- Nodes.cs
- ExpressionNode.cs
- ButtonBaseAutomationPeer.cs
- CommandBindingCollection.cs
- SchemaComplexType.cs
- TimeSpanValidator.cs
- InternalBufferManager.cs
- SendContent.cs
- SymmetricSecurityProtocol.cs
- OdbcConnectionPoolProviderInfo.cs
- SiteMapProvider.cs
- SelectionUIService.cs
- ControlBuilder.cs
- CustomTypeDescriptor.cs
- DataGridViewCellMouseEventArgs.cs
- PageSettings.cs
- HybridDictionary.cs
- EventlogProvider.cs
- ToolboxDataAttribute.cs
- MemoryStream.cs
- HtmlFormParameterReader.cs
- MarshalByRefObject.cs
- EnumValAlphaComparer.cs
- ThreadExceptionDialog.cs
- OleDbConnectionFactory.cs
- HTTPRemotingHandler.cs
- BaseValidator.cs
- TargetInvocationException.cs
- WinFormsSpinner.cs
- SQLInt16.cs
- BasicExpandProvider.cs
- RelatedImageListAttribute.cs
- QuotedPairReader.cs
- ServiceDebugElement.cs
- DragCompletedEventArgs.cs
- XmlSerializer.cs
- PartialToken.cs
- CodeExpressionStatement.cs
- XmlNullResolver.cs
- StringCollectionMarkupSerializer.cs
- BindingOperations.cs
- FtpCachePolicyElement.cs
- AttributeCollection.cs
- SettingsSection.cs
- TransformGroup.cs
- MarginsConverter.cs
- WebConfigurationManager.cs
- EntityChangedParams.cs
- TextParagraph.cs
- InstanceKey.cs
- TraceHwndHost.cs
- ImageDrawing.cs
- StateMachineSubscription.cs
- HttpProfileBase.cs
- ViewStateException.cs
- SystemTcpConnection.cs
- DataSourceCacheDurationConverter.cs
- QuaternionConverter.cs
- NavigationPropertyEmitter.cs
- OperationContextScope.cs
- AttributeEmitter.cs
- FixedSOMGroup.cs
- SpecialTypeDataContract.cs
- GPStream.cs