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; ////// [HostProtection(SharedState = true)] public class CancelEventArgs : EventArgs { ////// Provides data for the ////// event. /// /// Indicates, on return, whether or not the operation should be cancelled /// or not. 'true' means cancel it, 'false' means don't. /// private bool cancel; ////// public CancelEventArgs() : this(false) { } ////// Initializes a new instance of the ///class with /// cancel set to . /// /// public CancelEventArgs(bool cancel) : base() { this.cancel = cancel; } ////// Initializes a new instance of the ///class with /// cancel set to the given value. /// /// public bool Cancel { get { return cancel; } set { this.cancel = value; } } } }/// Gets or sets a value /// indicating whether the operation should be cancelled. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AdCreatedEventArgs.cs
- Zone.cs
- KeyNotFoundException.cs
- GridViewItemAutomationPeer.cs
- KeyPullup.cs
- DllHostedComPlusServiceHost.cs
- serverconfig.cs
- ComPlusServiceHost.cs
- ExpressionList.cs
- XPathNavigator.cs
- MergeFailedEvent.cs
- XmlDictionaryString.cs
- MethodToken.cs
- SystemUnicastIPAddressInformation.cs
- GridErrorDlg.cs
- ExceptionUtil.cs
- Part.cs
- SimpleBitVector32.cs
- GroupQuery.cs
- SqlCacheDependencyDatabase.cs
- ServiceEndpoint.cs
- DataPagerField.cs
- GraphicsPathIterator.cs
- SafeProcessHandle.cs
- DynamicMetaObjectBinder.cs
- GridEntryCollection.cs
- TextPointerBase.cs
- CodeExporter.cs
- ProxyAttribute.cs
- NetNamedPipeBinding.cs
- SettingsPropertyIsReadOnlyException.cs
- Comparer.cs
- ColumnWidthChangedEvent.cs
- ProfileProvider.cs
- RelationshipManager.cs
- RegexRunner.cs
- Terminate.cs
- HttpCookie.cs
- OdbcTransaction.cs
- DBConcurrencyException.cs
- GcHandle.cs
- StandardRuntimeEnumValidatorAttribute.cs
- DataGridItemCollection.cs
- TypeDescriptorFilterService.cs
- AsyncStreamReader.cs
- FacetChecker.cs
- FullTrustAssemblyCollection.cs
- PageScaling.cs
- ScriptMethodAttribute.cs
- ActiveDocumentEvent.cs
- SessionChannels.cs
- TextServicesCompartment.cs
- LoginUtil.cs
- SystemIPGlobalStatistics.cs
- oledbconnectionstring.cs
- TextBoxRenderer.cs
- Unit.cs
- Helpers.cs
- ListDataHelper.cs
- StreamBodyWriter.cs
- DiscriminatorMap.cs
- DecimalStorage.cs
- AngleUtil.cs
- RenderData.cs
- AutoGeneratedFieldProperties.cs
- WindowsClientElement.cs
- LogArchiveSnapshot.cs
- TextElement.cs
- RepeaterCommandEventArgs.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- StrokeCollection2.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- AngleUtil.cs
- EnvelopeVersion.cs
- ModuleBuilder.cs
- WebOperationContext.cs
- PhysicalFontFamily.cs
- DrawingCollection.cs
- PermissionToken.cs
- HttpContextServiceHost.cs
- Utilities.cs
- EventLog.cs
- SymLanguageType.cs
- GenericTextProperties.cs
- BuildManagerHost.cs
- DecimalConverter.cs
- Variant.cs
- DataTemplate.cs
- PathSegment.cs
- GlyphsSerializer.cs
- DiscoveryReference.cs
- ImageBrush.cs
- CellConstant.cs
- ProgressBarBrushConverter.cs
- HttpResponse.cs
- PropertyInfo.cs
- securestring.cs
- PeerContact.cs
- MaskedTextProvider.cs
- MetadataException.cs