Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / CancelEventArgs.cs / 1 / CancelEventArgs.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 CancelEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the operation should be cancelled
/// or not. 'true' means cancel it, 'false' means don't.
///
private bool cancel;
///
///
/// Initializes a new instance of the class with
/// cancel set to .
///
///
public CancelEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// cancel set to the given value.
///
///
public CancelEventArgs(bool cancel)
: base() {
this.cancel = cancel;
}
///
///
/// Gets or sets a value
/// indicating whether the operation should be cancelled.
///
///
public bool Cancel {
get {
return cancel;
}
set {
this.cancel = 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 CancelEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the operation should be cancelled
/// or not. 'true' means cancel it, 'false' means don't.
///
private bool cancel;
///
///
/// Initializes a new instance of the class with
/// cancel set to .
///
///
public CancelEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// cancel set to the given value.
///
///
public CancelEventArgs(bool cancel)
: base() {
this.cancel = cancel;
}
///
///
/// Gets or sets a value
/// indicating whether the operation should be cancelled.
///
///
public bool Cancel {
get {
return cancel;
}
set {
this.cancel = 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
- StringAnimationBase.cs
- EntityDataSourceContainerNameConverter.cs
- StandardToolWindows.cs
- PeerName.cs
- EditingContext.cs
- OutputBuffer.cs
- ControlEvent.cs
- SignedXml.cs
- DataGridItem.cs
- LocalFileSettingsProvider.cs
- ScrollProperties.cs
- PermissionSetTriple.cs
- ImageMap.cs
- ChangeBlockUndoRecord.cs
- CodeDOMUtility.cs
- SHA1.cs
- ReferentialConstraint.cs
- bidPrivateBase.cs
- SuppressMessageAttribute.cs
- BufferedStream.cs
- ObjectDataSourceDisposingEventArgs.cs
- WindowsGraphics.cs
- ConfigurationManagerHelper.cs
- PtsHost.cs
- PowerStatus.cs
- SoapFault.cs
- FormatException.cs
- Script.cs
- XmlEntityReference.cs
- WebCodeGenerator.cs
- WSSecurityPolicy.cs
- GACIdentityPermission.cs
- TextPenaltyModule.cs
- SemanticAnalyzer.cs
- HtmlInputButton.cs
- LinkUtilities.cs
- ArgumentOutOfRangeException.cs
- InputScopeConverter.cs
- CompositeFontParser.cs
- CorrelationManager.cs
- FileReader.cs
- Currency.cs
- DataGridSortCommandEventArgs.cs
- AddIn.cs
- TextEncodedRawTextWriter.cs
- VisualStyleTypesAndProperties.cs
- CodeArrayCreateExpression.cs
- SplitterCancelEvent.cs
- ConfigXmlCDataSection.cs
- StorageMappingItemLoader.cs
- SafeCoTaskMem.cs
- CriticalHandle.cs
- XmlValidatingReader.cs
- VirtualPathProvider.cs
- Int16AnimationBase.cs
- ThreadPool.cs
- XmlMemberMapping.cs
- TypeElement.cs
- TagPrefixInfo.cs
- ContextMenuAutomationPeer.cs
- SqlCacheDependencyDatabase.cs
- mongolianshape.cs
- EventMetadata.cs
- AliasExpr.cs
- FixedBufferAttribute.cs
- ScrollBarAutomationPeer.cs
- CultureInfoConverter.cs
- BookmarkScopeManager.cs
- SamlSubjectStatement.cs
- FrameworkContentElement.cs
- TextSearch.cs
- UnaryNode.cs
- CounterNameConverter.cs
- NotifyInputEventArgs.cs
- XmlCompatibilityReader.cs
- DirectionalLight.cs
- DoubleLinkListEnumerator.cs
- Point3DCollectionValueSerializer.cs
- Currency.cs
- CatalogPartChrome.cs
- SchemaConstraints.cs
- AuthenticateEventArgs.cs
- JsonFormatGeneratorStatics.cs
- KeyTime.cs
- TimelineClockCollection.cs
- RichTextBoxContextMenu.cs
- DbConnectionPoolGroupProviderInfo.cs
- TextRunProperties.cs
- SymbolUsageManager.cs
- AliasedSlot.cs
- PropertyEntry.cs
- ProxyWebPart.cs
- HttpResponseInternalBase.cs
- XmlAttributeOverrides.cs
- X509CertificateCollection.cs
- WebPartHeaderCloseVerb.cs
- PictureBox.cs
- SmiEventSink_DeferedProcessing.cs
- ElementMarkupObject.cs
- ConstructorBuilder.cs