Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbMetaDataColumnNames.cs
- SmiGettersStream.cs
- StylusDownEventArgs.cs
- Win32MouseDevice.cs
- PropertyGridView.cs
- Content.cs
- SqlDataReader.cs
- Pipe.cs
- CLRBindingWorker.cs
- XmlSerializerOperationFormatter.cs
- ModelTreeEnumerator.cs
- CompositionTarget.cs
- EntitySetBaseCollection.cs
- SqlConnectionHelper.cs
- TextTreeTextElementNode.cs
- DbConnectionOptions.cs
- InfoCardTraceRecord.cs
- Hex.cs
- InternalPermissions.cs
- GuidConverter.cs
- ColorMatrix.cs
- HandledMouseEvent.cs
- MetadataPropertyAttribute.cs
- BooleanAnimationUsingKeyFrames.cs
- EdgeProfileValidation.cs
- OptionalColumn.cs
- SqlDataReaderSmi.cs
- LinkUtilities.cs
- recordstatescratchpad.cs
- QueuePathEditor.cs
- MessageEncodingBindingElementImporter.cs
- GlobalAllocSafeHandle.cs
- DefaultValueAttribute.cs
- RectAnimationClockResource.cs
- DBConnectionString.cs
- WindowsTreeView.cs
- FloaterParagraph.cs
- GenericRootAutomationPeer.cs
- LazyLoadBehavior.cs
- Point3D.cs
- RelOps.cs
- FontStyle.cs
- QualificationDataItem.cs
- securitymgrsite.cs
- DataSysAttribute.cs
- ZipPackage.cs
- COM2ExtendedUITypeEditor.cs
- TextEndOfSegment.cs
- RevocationPoint.cs
- MimeTypePropertyAttribute.cs
- OperationFormatUse.cs
- DbDataAdapter.cs
- ExpressionConverter.cs
- Style.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- OrderingInfo.cs
- FreezableOperations.cs
- WebControlsSection.cs
- EllipticalNodeOperations.cs
- TrustDriver.cs
- SessionParameter.cs
- StylusShape.cs
- XmlAttributeOverrides.cs
- TypographyProperties.cs
- EndpointInfo.cs
- XmlEnumAttribute.cs
- RMPublishingDialog.cs
- StringArrayConverter.cs
- MailMessageEventArgs.cs
- EditingScope.cs
- ContentType.cs
- UpdatePanelTrigger.cs
- Win32SafeHandles.cs
- GeometryDrawing.cs
- PolicyStatement.cs
- HostedBindingBehavior.cs
- EntityConnectionStringBuilder.cs
- ResXResourceWriter.cs
- QualificationDataAttribute.cs
- CellTreeSimplifier.cs
- Instrumentation.cs
- ActivityExecutionContext.cs
- _BaseOverlappedAsyncResult.cs
- XamlSerializerUtil.cs
- Literal.cs
- FileDialog.cs
- versioninfo.cs
- DbProviderFactory.cs
- FileDocument.cs
- ProcessModuleCollection.cs
- BinaryQueryOperator.cs
- MultipleCopiesCollection.cs
- DependencyPropertyConverter.cs
- MiniModule.cs
- Misc.cs
- ActivityBindForm.cs
- ModelFunctionTypeElement.cs
- PublisherMembershipCondition.cs
- TabletDevice.cs
- ConfigurationManagerInternalFactory.cs