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
- SelectionItemPattern.cs
- ProcessInfo.cs
- CompilerLocalReference.cs
- Size.cs
- SettingsSection.cs
- OdbcConnectionPoolProviderInfo.cs
- WindowsListViewScroll.cs
- PackUriHelper.cs
- WinCategoryAttribute.cs
- EditorPartCollection.cs
- RequestCacheEntry.cs
- HttpModuleAction.cs
- DbCommandDefinition.cs
- HasCopySemanticsAttribute.cs
- XMLSchema.cs
- ContextMenuAutomationPeer.cs
- ExtendedPropertyInfo.cs
- MenuItem.cs
- XmlILAnnotation.cs
- SafeHandle.cs
- TreeNodeBindingDepthConverter.cs
- GradientBrush.cs
- MessageQueuePermissionEntryCollection.cs
- ImageAutomationPeer.cs
- ParserContext.cs
- Object.cs
- Activity.cs
- Regex.cs
- util.cs
- XmlMtomWriter.cs
- codemethodreferenceexpression.cs
- LinkLabel.cs
- DropDownButton.cs
- OrderedDictionary.cs
- GuidTagList.cs
- DataTemplate.cs
- HtmlInputControl.cs
- RecordManager.cs
- DecimalAnimationUsingKeyFrames.cs
- WebPartEventArgs.cs
- AccessorTable.cs
- SynchronousChannelMergeEnumerator.cs
- SerialPinChanges.cs
- ResourceContainer.cs
- DataBinder.cs
- XmlWriterSettings.cs
- CompilerGlobalScopeAttribute.cs
- figurelength.cs
- AliasGenerator.cs
- DataGridBoolColumn.cs
- LayoutTable.cs
- WebPartChrome.cs
- LineUtil.cs
- Itemizer.cs
- sqlstateclientmanager.cs
- PaperSize.cs
- itemelement.cs
- ElementMarkupObject.cs
- SemanticResolver.cs
- OuterGlowBitmapEffect.cs
- WorkflowDesigner.cs
- WebServiceParameterData.cs
- ContractComponent.cs
- x509store.cs
- SynchronizationContext.cs
- httpstaticobjectscollection.cs
- RightsManagementInformation.cs
- wgx_render.cs
- SerialPinChanges.cs
- HopperCache.cs
- ToolStripItem.cs
- PeerNearMe.cs
- TextServicesProperty.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- SchemaManager.cs
- ConfigXmlWhitespace.cs
- BufferedStream.cs
- WindowsTokenRoleProvider.cs
- sqlstateclientmanager.cs
- Utils.cs
- EventWaitHandle.cs
- Invariant.cs
- Image.cs
- MDIControlStrip.cs
- QueryExecutionOption.cs
- WebAdminConfigurationHelper.cs
- NotifyParentPropertyAttribute.cs
- FacetValues.cs
- TdsRecordBufferSetter.cs
- Process.cs
- MemoryFailPoint.cs
- DynamicRouteExpression.cs
- XsltInput.cs
- TextFormatter.cs
- __ConsoleStream.cs
- CombinedGeometry.cs
- HttpTransportManager.cs
- RNGCryptoServiceProvider.cs
- DeviceContext2.cs
- EntitySetBase.cs