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
- ProcessModelSection.cs
- TemplateManager.cs
- InternalTypeHelper.cs
- FlowDocumentView.cs
- TraceInternal.cs
- NamespaceList.cs
- AspCompat.cs
- Application.cs
- UserControlBuildProvider.cs
- MsmqQueue.cs
- bindurihelper.cs
- Rotation3DAnimationBase.cs
- ConcurrentDictionary.cs
- UpdatePanelTriggerCollection.cs
- ChildDocumentBlock.cs
- XmlSchemaInclude.cs
- DataGridCell.cs
- GridProviderWrapper.cs
- EntityTypeBase.cs
- IssuedSecurityTokenProvider.cs
- SettingsPropertyCollection.cs
- PlanCompilerUtil.cs
- ParserContext.cs
- NameValueCollection.cs
- IntPtr.cs
- ServiceDesigner.cs
- CalendarDay.cs
- shaperfactoryquerycacheentry.cs
- DropDownList.cs
- DebuggerAttributes.cs
- DurableInstancingOptions.cs
- ResourceDescriptionAttribute.cs
- DataColumnChangeEvent.cs
- NavigationService.cs
- WsatAdminException.cs
- arclist.cs
- WrappingXamlSchemaContext.cs
- HuffModule.cs
- HttpListenerException.cs
- TraversalRequest.cs
- OdbcConnectionString.cs
- SqlWebEventProvider.cs
- TextDpi.cs
- RC2CryptoServiceProvider.cs
- MetadataItemEmitter.cs
- ExeConfigurationFileMap.cs
- StructuralCache.cs
- EntityParameter.cs
- OleTxTransactionInfo.cs
- LogWriteRestartAreaAsyncResult.cs
- RotationValidation.cs
- BindingBase.cs
- HttpCacheVary.cs
- WebConfigManager.cs
- GridViewRow.cs
- SelectingProviderEventArgs.cs
- LinkedDataMemberFieldEditor.cs
- EncoderExceptionFallback.cs
- XPathSelfQuery.cs
- ArrayWithOffset.cs
- EntityDataSourceDesignerHelper.cs
- DataGridComboBoxColumn.cs
- x509store.cs
- UTF7Encoding.cs
- PropertiesTab.cs
- TextWriterTraceListener.cs
- TreeSet.cs
- CachingHintValidation.cs
- Border.cs
- _SecureChannel.cs
- safelinkcollection.cs
- UserPreferenceChangingEventArgs.cs
- LinearQuaternionKeyFrame.cs
- WorkflowDesignerMessageFilter.cs
- NotifyCollectionChangedEventArgs.cs
- FacetChecker.cs
- SettingsContext.cs
- RecommendedAsConfigurableAttribute.cs
- EventWaitHandle.cs
- RotateTransform.cs
- ManagementBaseObject.cs
- keycontainerpermission.cs
- RichTextBoxConstants.cs
- Compiler.cs
- TogglePattern.cs
- TextEndOfParagraph.cs
- SchemaType.cs
- IUnknownConstantAttribute.cs
- WindowsRichEdit.cs
- ListViewDeleteEventArgs.cs
- SiteMapPath.cs
- RegularExpressionValidator.cs
- SelectorItemAutomationPeer.cs
- ProfilePropertySettings.cs
- GridViewCellAutomationPeer.cs
- OracleDateTime.cs
- StaticContext.cs
- BatchStream.cs
- CopyAttributesAction.cs
- DataGridViewRowPrePaintEventArgs.cs