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
- OrderByBuilder.cs
- ButtonBaseAdapter.cs
- Base64Encoder.cs
- NotSupportedException.cs
- Char.cs
- HtmlElement.cs
- RepeaterCommandEventArgs.cs
- Command.cs
- FaultImportOptions.cs
- TextElementCollection.cs
- NonSerializedAttribute.cs
- BasicBrowserDialog.designer.cs
- ToolStripArrowRenderEventArgs.cs
- LightweightCodeGenerator.cs
- XmlSchemaException.cs
- Baml6ConstructorInfo.cs
- DrawingContextWalker.cs
- HttpServerChannel.cs
- DesignerCatalogPartChrome.cs
- DispatcherHooks.cs
- DetailsViewRowCollection.cs
- MarshalByRefObject.cs
- ControlHelper.cs
- VisualStyleRenderer.cs
- SQLGuid.cs
- OutputCacheModule.cs
- DataDocumentXPathNavigator.cs
- sapiproxy.cs
- entityreference_tresulttype.cs
- CodeTypeDeclaration.cs
- BoundField.cs
- XmlIlVisitor.cs
- FigureParaClient.cs
- MissingManifestResourceException.cs
- XslAstAnalyzer.cs
- designeractionlistschangedeventargs.cs
- BooleanProjectedSlot.cs
- PostBackTrigger.cs
- HitTestWithPointDrawingContextWalker.cs
- UseAttributeSetsAction.cs
- BindingSourceDesigner.cs
- Control.cs
- SqlGatherConsumedAliases.cs
- DataBindingCollection.cs
- ExpandSegmentCollection.cs
- EnvelopedPkcs7.cs
- XXXOnTypeBuilderInstantiation.cs
- DesignTimeTemplateParser.cs
- PropertyInformation.cs
- Math.cs
- DockingAttribute.cs
- ellipse.cs
- MultiBinding.cs
- StoragePropertyMapping.cs
- EdmComplexPropertyAttribute.cs
- ClientConfigPaths.cs
- ConnectivityStatus.cs
- ErrorStyle.cs
- ToolStripItemCollection.cs
- ScrollBar.cs
- ServiceMetadataBehavior.cs
- DataExpression.cs
- SemanticAnalyzer.cs
- LinqDataSourceStatusEventArgs.cs
- IntPtr.cs
- ConfigurationElementCollection.cs
- ProcessProtocolHandler.cs
- FaultPropagationQuery.cs
- OdbcEnvironmentHandle.cs
- HMAC.cs
- QilCloneVisitor.cs
- DivideByZeroException.cs
- ExtenderProvidedPropertyAttribute.cs
- relpropertyhelper.cs
- WindowsEditBox.cs
- ZipIORawDataFileBlock.cs
- IisTraceWebEventProvider.cs
- _IPv4Address.cs
- IssuanceLicense.cs
- ListViewDeleteEventArgs.cs
- diagnosticsswitches.cs
- WorkflowCommandExtensionItem.cs
- CorrelationResolver.cs
- ReferentialConstraintRoleElement.cs
- UIHelper.cs
- AnnotationResourceChangedEventArgs.cs
- _Rfc2616CacheValidators.cs
- CacheAxisQuery.cs
- columnmapfactory.cs
- ProcessProtocolHandler.cs
- PackageProperties.cs
- DateBoldEvent.cs
- ConnectionPoolManager.cs
- SqlParameterizer.cs
- MimeFormReflector.cs
- CultureInfoConverter.cs
- OleDbParameterCollection.cs
- CodeGenHelper.cs
- MessageSmuggler.cs
- IxmlLineInfo.cs