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
- DSACryptoServiceProvider.cs
- EntityDataSourceEntitySetNameItem.cs
- CodeCompiler.cs
- RegexWorker.cs
- Queue.cs
- SoapClientProtocol.cs
- KeyValuePair.cs
- AutomationPattern.cs
- BulletedListEventArgs.cs
- TransformerInfo.cs
- GridViewDeletedEventArgs.cs
- SystemWebSectionGroup.cs
- GenericEnumConverter.cs
- PreProcessor.cs
- Region.cs
- GridItem.cs
- HandleExceptionArgs.cs
- Rotation3D.cs
- PenLineJoinValidation.cs
- PropertyTabChangedEvent.cs
- ServiceRoute.cs
- UiaCoreTypesApi.cs
- AttributeParameterInfo.cs
- RuleInfoComparer.cs
- VarRefManager.cs
- EdmPropertyAttribute.cs
- OrderByBuilder.cs
- TreeNode.cs
- CodeIndexerExpression.cs
- SoapCodeExporter.cs
- QilReplaceVisitor.cs
- StateDesigner.cs
- sqlmetadatafactory.cs
- Cursor.cs
- SelectorAutomationPeer.cs
- BitArray.cs
- ToolStripSeparator.cs
- DbMetaDataFactory.cs
- Button.cs
- NetworkCredential.cs
- CustomSignedXml.cs
- AlternationConverter.cs
- TextEffect.cs
- MetadataItemCollectionFactory.cs
- IsolatedStorageFileStream.cs
- PublisherIdentityPermission.cs
- FixedTextPointer.cs
- Simplifier.cs
- WebPageTraceListener.cs
- RenderOptions.cs
- SortDescriptionCollection.cs
- IgnorePropertiesAttribute.cs
- StrongNameKeyPair.cs
- PathFigureCollection.cs
- OutputCacheSettingsSection.cs
- Set.cs
- StringHelper.cs
- Assign.cs
- VolatileEnlistmentState.cs
- SplineKeyFrames.cs
- PropertyReferenceSerializer.cs
- Classification.cs
- ContextMenu.cs
- SafeBuffer.cs
- State.cs
- KeyMatchBuilder.cs
- RoleGroupCollection.cs
- PocoPropertyAccessorStrategy.cs
- NonParentingControl.cs
- ComboBoxAutomationPeer.cs
- MailDefinition.cs
- HtmlInputImage.cs
- validation.cs
- ExeConfigurationFileMap.cs
- StrongBox.cs
- CacheAxisQuery.cs
- HttpRawResponse.cs
- Lease.cs
- QilStrConcat.cs
- SessionStateModule.cs
- Math.cs
- HttpFileCollection.cs
- SmiEventSink_Default.cs
- OleDbDataReader.cs
- DispatcherSynchronizationContext.cs
- COM2TypeInfoProcessor.cs
- HostingEnvironment.cs
- DefaultPropertiesToSend.cs
- ObjectKeyFrameCollection.cs
- FileSystemEventArgs.cs
- Misc.cs
- LinqDataSourceUpdateEventArgs.cs
- X509ChainElement.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- MetabaseSettings.cs
- EditorZoneBase.cs
- CodePropertyReferenceExpression.cs
- PointCollection.cs
- PartManifestEntry.cs
- HttpPostedFile.cs