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
- ChainedAsyncResult.cs
- IisTraceListener.cs
- VirtualPathUtility.cs
- xdrvalidator.cs
- FontFamilyIdentifier.cs
- CompModSwitches.cs
- CustomCredentialPolicy.cs
- XmlSchemaSimpleTypeList.cs
- TripleDES.cs
- TimersDescriptionAttribute.cs
- SelectionItemPattern.cs
- HeaderedContentControl.cs
- CategoryGridEntry.cs
- BinaryUtilClasses.cs
- RawStylusSystemGestureInputReport.cs
- NestPullup.cs
- AssemblyHash.cs
- ControlCodeDomSerializer.cs
- StringExpressionSet.cs
- coordinatorscratchpad.cs
- CodeIndexerExpression.cs
- EntityDataSourceChangingEventArgs.cs
- IpcChannelHelper.cs
- SocketPermission.cs
- ZoneIdentityPermission.cs
- TimeZone.cs
- QueryGenerator.cs
- SingleAnimationBase.cs
- PtsHost.cs
- Resources.Designer.cs
- CryptoKeySecurity.cs
- HyperLinkColumn.cs
- XpsFilter.cs
- TreeNodeBindingCollection.cs
- ErrorWrapper.cs
- Action.cs
- TaskExtensions.cs
- PageFunction.cs
- WebBrowser.cs
- ToolStripLabel.cs
- CommonObjectSecurity.cs
- DragEvent.cs
- SqlUdtInfo.cs
- FileAuthorizationModule.cs
- ConfigXmlElement.cs
- ImageSource.cs
- XmlCountingReader.cs
- SimpleTextLine.cs
- ResourcesChangeInfo.cs
- XsltConvert.cs
- NumberSubstitution.cs
- ConsoleKeyInfo.cs
- PathFigure.cs
- ListViewAutomationPeer.cs
- TemplateControl.cs
- ImageKeyConverter.cs
- TaskExtensions.cs
- RenameRuleObjectDialog.Designer.cs
- propertytag.cs
- OledbConnectionStringbuilder.cs
- UnsafeCollabNativeMethods.cs
- StorageMappingFragment.cs
- NotFiniteNumberException.cs
- SymmetricKeyWrap.cs
- ServiceContractListItemList.cs
- FormsAuthenticationEventArgs.cs
- TableCellCollection.cs
- EventLevel.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TreeViewItemAutomationPeer.cs
- SettingsAttributes.cs
- ScrollableControl.cs
- EventHandlers.cs
- CustomAssemblyResolver.cs
- WindowsSspiNegotiation.cs
- AsyncOperationManager.cs
- DataGridView.cs
- ListView.cs
- CodeVariableDeclarationStatement.cs
- DataChangedEventManager.cs
- CompiledRegexRunner.cs
- DoWorkEventArgs.cs
- AttachmentService.cs
- KeyManager.cs
- SafeNativeMethods.cs
- RtfFormatStack.cs
- HtmlInputSubmit.cs
- MediaScriptCommandRoutedEventArgs.cs
- util.cs
- DataGridTableCollection.cs
- CanExecuteRoutedEventArgs.cs
- ExpandButtonVisibilityConverter.cs
- ContainerVisual.cs
- TemplatedControlDesigner.cs
- SQLStringStorage.cs
- XamlTypeMapper.cs
- EntityDataSourceChangedEventArgs.cs
- LayoutEditorPart.cs
- TranslateTransform.cs
- DecimalAverageAggregationOperator.cs