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
- TemplatedMailWebEventProvider.cs
- TextSchema.cs
- MediaContextNotificationWindow.cs
- JsonEncodingStreamWrapper.cs
- Hashtable.cs
- Exceptions.cs
- PieceNameHelper.cs
- System.Data.OracleClient_BID.cs
- TabletDeviceInfo.cs
- Filter.cs
- DesignerSerializationOptionsAttribute.cs
- HttpCacheParams.cs
- PEFileEvidenceFactory.cs
- CompilerResults.cs
- SafeFileMappingHandle.cs
- TypeListConverter.cs
- Subtree.cs
- ObjectMemberMapping.cs
- CompilerScope.cs
- SortExpressionBuilder.cs
- XmlChildNodes.cs
- IntegerFacetDescriptionElement.cs
- WeakReferenceList.cs
- InvokeHandlers.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- EntityDataSourceDataSelection.cs
- StyleSheet.cs
- SymbolMethod.cs
- XmlComplianceUtil.cs
- StorageEndPropertyMapping.cs
- TokenBasedSetEnumerator.cs
- ProcessDesigner.cs
- SmiEventStream.cs
- GenericUriParser.cs
- MasterPage.cs
- SortableBindingList.cs
- TrailingSpaceComparer.cs
- DeploymentSectionCache.cs
- DataColumnMappingCollection.cs
- DbCommandDefinition.cs
- WebResourceUtil.cs
- NegotiateStream.cs
- CustomWebEventKey.cs
- PrivateFontCollection.cs
- CapabilitiesSection.cs
- Activator.cs
- Pair.cs
- TrackingProvider.cs
- Policy.cs
- JavaScriptString.cs
- ListViewUpdatedEventArgs.cs
- TypeConstant.cs
- filewebresponse.cs
- ReadWriteObjectLock.cs
- XPathScanner.cs
- CreationContext.cs
- CursorInteropHelper.cs
- ZipIOFileItemStream.cs
- ADMembershipProvider.cs
- DataBindingsDialog.cs
- SafeArrayTypeMismatchException.cs
- CompiledQuery.cs
- DetailsViewPagerRow.cs
- FontFaceLayoutInfo.cs
- CodeSnippetExpression.cs
- UriScheme.cs
- ParseNumbers.cs
- RunInstallerAttribute.cs
- DataTrigger.cs
- CheckBoxRenderer.cs
- ElementAction.cs
- OverlappedContext.cs
- AsymmetricSignatureDeformatter.cs
- ExternalDataExchangeClient.cs
- PropertyMap.cs
- PropertyKey.cs
- Timer.cs
- InvalidateEvent.cs
- ConnectionPoolManager.cs
- NativeActivityMetadata.cs
- ObjectDataSourceDisposingEventArgs.cs
- GlobalEventManager.cs
- itemelement.cs
- PersonalizableTypeEntry.cs
- SqlCacheDependencyDatabaseCollection.cs
- QueueProcessor.cs
- ScrollViewer.cs
- PackageStore.cs
- InvalidateEvent.cs
- Frame.cs
- FontNameConverter.cs
- Literal.cs
- IntegrationExceptionEventArgs.cs
- ApplicationDirectory.cs
- SymbolType.cs
- XmlWrappingReader.cs
- WebPartRestoreVerb.cs
- DataKeyCollection.cs
- HandlerMappingMemo.cs
- ReachBasicContext.cs