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
- MemoryRecordBuffer.cs
- StringUtil.cs
- AppSettingsExpressionBuilder.cs
- WebBrowser.cs
- GradientStop.cs
- PathSegment.cs
- GlobalAllocSafeHandle.cs
- XmlNamespaceDeclarationsAttribute.cs
- PropertyEmitter.cs
- TrackingSection.cs
- MergeFailedEvent.cs
- MobilePage.cs
- SqlServer2KCompatibilityCheck.cs
- XmlAttributeHolder.cs
- contentDescriptor.cs
- ZipIOLocalFileDataDescriptor.cs
- HwndMouseInputProvider.cs
- TreeNodeCollectionEditorDialog.cs
- ReflectionTypeLoadException.cs
- WebPartZoneBaseDesigner.cs
- SafeThemeHandle.cs
- XmlObjectSerializerContext.cs
- ItemAutomationPeer.cs
- DataDocumentXPathNavigator.cs
- WorkflowCreationContext.cs
- WizardSideBarListControlItemEventArgs.cs
- TextShapeableCharacters.cs
- TreeViewEvent.cs
- SiteMapHierarchicalDataSourceView.cs
- XmlSchemaSimpleContentRestriction.cs
- odbcmetadatacollectionnames.cs
- DispatcherExceptionEventArgs.cs
- DataControlButton.cs
- SocketStream.cs
- DataGridViewRowHeaderCell.cs
- SqlConnectionHelper.cs
- ReliableSessionBindingElement.cs
- DataBindingsDialog.cs
- ToolStripTextBox.cs
- TextRangeBase.cs
- FixedSOMTableCell.cs
- CssStyleCollection.cs
- NativeWindow.cs
- ScriptDescriptor.cs
- Vector3dCollection.cs
- future.cs
- IteratorFilter.cs
- FormViewDeletedEventArgs.cs
- SplitterEvent.cs
- LayoutEngine.cs
- PropertyRecord.cs
- PluralizationService.cs
- PerformanceCounterPermissionAttribute.cs
- PartBasedPackageProperties.cs
- ComponentEditorForm.cs
- PermissionSet.cs
- AssemblyBuilder.cs
- Int32Rect.cs
- Operators.cs
- WpfKnownType.cs
- SourceElementsCollection.cs
- IpcChannelHelper.cs
- ApplyTemplatesAction.cs
- IPPacketInformation.cs
- ListViewGroupConverter.cs
- BulletDecorator.cs
- PropertyGroupDescription.cs
- XmlMapping.cs
- CodeFieldReferenceExpression.cs
- UnicodeEncoding.cs
- ProvidersHelper.cs
- PrintDialogException.cs
- FormsIdentity.cs
- TextFormatterImp.cs
- SharedDp.cs
- AccessKeyManager.cs
- ArrayEditor.cs
- COM2PictureConverter.cs
- ImageSourceConverter.cs
- ProfileGroupSettingsCollection.cs
- Debug.cs
- LOSFormatter.cs
- SyndicationCategory.cs
- EmptyArray.cs
- BamlTreeMap.cs
- NamespaceInfo.cs
- MenuTracker.cs
- PropertyEmitterBase.cs
- NetCodeGroup.cs
- CodeDOMProvider.cs
- DynamicRendererThreadManager.cs
- TextFormatterHost.cs
- ConfigurationPropertyAttribute.cs
- JsonXmlDataContract.cs
- AccessorTable.cs
- HMACMD5.cs
- Button.cs
- DropShadowBitmapEffect.cs
- DecoderExceptionFallback.cs
- DataGridViewRowStateChangedEventArgs.cs