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
- TableDetailsCollection.cs
- UnitySerializationHolder.cs
- WindowsTreeView.cs
- CompilerCollection.cs
- DataGridComponentEditor.cs
- StatusBarPanelClickEvent.cs
- CodeMemberEvent.cs
- WeakEventTable.cs
- BindingWorker.cs
- ExistsInCollection.cs
- HttpCacheVaryByContentEncodings.cs
- BoolExpressionVisitors.cs
- PersonalizationEntry.cs
- TCPListener.cs
- XmlSchemaComplexContentRestriction.cs
- FieldAccessException.cs
- DataGridViewCellEventArgs.cs
- DragDropHelper.cs
- SelectedCellsCollection.cs
- PathSegmentCollection.cs
- XmlNodeList.cs
- recordstate.cs
- ErrorCodes.cs
- StringComparer.cs
- BaseWebProxyFinder.cs
- BooleanToVisibilityConverter.cs
- RawStylusActions.cs
- WebPartsSection.cs
- DataBoundControl.cs
- MimeXmlImporter.cs
- Grant.cs
- ListViewCommandEventArgs.cs
- PolyBezierSegment.cs
- EdmItemCollection.cs
- LinkTarget.cs
- Repeater.cs
- EmptyControlCollection.cs
- DirectoryNotFoundException.cs
- StrokeNode.cs
- DateTimeFormatInfoScanner.cs
- Msec.cs
- DynamicQueryableWrapper.cs
- _StreamFramer.cs
- FlowNode.cs
- ClrProviderManifest.cs
- FloaterParaClient.cs
- MenuBindingsEditor.cs
- LinqDataSource.cs
- SqlFlattener.cs
- ArithmeticException.cs
- ZeroOpNode.cs
- SqlFlattener.cs
- DbUpdateCommandTree.cs
- DataGridView.cs
- ScaleTransform.cs
- PrintDialog.cs
- OleDbParameterCollection.cs
- SizeAnimation.cs
- DesignerLoader.cs
- ControlCollection.cs
- ApplicationHost.cs
- PolyLineSegment.cs
- CapabilitiesUse.cs
- ThreadAbortException.cs
- MembershipUser.cs
- IItemProperties.cs
- SiteMapNodeItemEventArgs.cs
- ObjectFullSpanRewriter.cs
- SecureStringHasher.cs
- DebugTrace.cs
- SafeCancelMibChangeNotify.cs
- _PooledStream.cs
- NameSpaceExtractor.cs
- KeyMatchBuilder.cs
- TransformCollection.cs
- SchemaTableColumn.cs
- BitStream.cs
- ComponentTray.cs
- HtmlWindowCollection.cs
- TextEditorSpelling.cs
- DigitalSignature.cs
- PermissionToken.cs
- ThreadAttributes.cs
- DataBindingCollectionEditor.cs
- ReflectionPermission.cs
- WebPartConnectionsConfigureVerb.cs
- DynamicQueryableWrapper.cs
- TriggerAction.cs
- LayoutEvent.cs
- FlowDocumentReaderAutomationPeer.cs
- Keywords.cs
- ContextMenuAutomationPeer.cs
- DllNotFoundException.cs
- RenderDataDrawingContext.cs
- ComEventsHelper.cs
- ScopeCollection.cs
- FixedSOMSemanticBox.cs
- ComponentDispatcher.cs
- ClosureBinding.cs
- PixelFormats.cs