Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / CancelEventArgs.cs / 1305376 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets a value /// indicating whether the operation should be cancelled. /// ///// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- TypedReference.cs
- BitmapEffectCollection.cs
- ElementUtil.cs
- IsolatedStorageFile.cs
- XmlnsCache.cs
- DependencyObject.cs
- CodeMethodMap.cs
- XslVisitor.cs
- LoginUtil.cs
- OleDbParameter.cs
- IntranetCredentialPolicy.cs
- DataGridViewCheckBoxColumn.cs
- TcpHostedTransportConfiguration.cs
- PolyBezierSegmentFigureLogic.cs
- FormsIdentity.cs
- ExpressionContext.cs
- CharKeyFrameCollection.cs
- ElementFactory.cs
- OperationCanceledException.cs
- safesecurityhelperavalon.cs
- AddInControllerImpl.cs
- InterleavedZipPartStream.cs
- StringExpressionSet.cs
- CompilerCollection.cs
- RuleProcessor.cs
- DataTableMapping.cs
- DataGridViewHeaderCell.cs
- CompositeDuplexElement.cs
- DSASignatureFormatter.cs
- ToolboxItemCollection.cs
- GridViewSortEventArgs.cs
- TimeSpan.cs
- RootBrowserWindowProxy.cs
- ControlCachePolicy.cs
- Environment.cs
- ViewGenerator.cs
- LoginName.cs
- FullTrustAssembliesSection.cs
- BaseCodeDomTreeGenerator.cs
- SystemUnicastIPAddressInformation.cs
- DiscoveryUtility.cs
- WebPartConnection.cs
- HttpDebugHandler.cs
- NavigateEvent.cs
- EventLogInformation.cs
- SetterBaseCollection.cs
- XmlReflectionMember.cs
- Nodes.cs
- XmlEnumAttribute.cs
- HtmlElementEventArgs.cs
- LabelDesigner.cs
- PrimaryKeyTypeConverter.cs
- SqlInternalConnectionSmi.cs
- AttributeCollection.cs
- HttpHeaderCollection.cs
- SymLanguageType.cs
- MaterialGroup.cs
- Properties.cs
- TaskFileService.cs
- DataGridViewCellValueEventArgs.cs
- ParameterCollection.cs
- FileSecurity.cs
- JsonServiceDocumentSerializer.cs
- DbConnectionPoolOptions.cs
- cookieexception.cs
- XmlValueConverter.cs
- ValidatedControlConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- PeerNameRegistration.cs
- DocumentGridPage.cs
- IgnoreFileBuildProvider.cs
- VirtualDirectoryMappingCollection.cs
- AttachedAnnotation.cs
- NativeMethods.cs
- FontWeights.cs
- TiffBitmapDecoder.cs
- SplashScreen.cs
- DatagridviewDisplayedBandsData.cs
- HttpChannelHelper.cs
- XmlRawWriter.cs
- ResourceDescriptionAttribute.cs
- AuthenticationModuleElementCollection.cs
- InstanceKeyCompleteException.cs
- InvalidateEvent.cs
- EntityDataSourceContainerNameConverter.cs
- InheritanceContextChangedEventManager.cs
- StorageInfo.cs
- RequestQueue.cs
- Page.cs
- JsonEnumDataContract.cs
- SspiNegotiationTokenAuthenticator.cs
- QilValidationVisitor.cs
- SqlConnectionHelper.cs
- DateTimeFormatInfo.cs
- FlowchartDesigner.xaml.cs
- Calendar.cs
- RadioButtonList.cs
- TextTabProperties.cs
- ProtectedConfigurationProviderCollection.cs
- EntityDataSourceChangingEventArgs.cs