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
- ToolStripItemClickedEventArgs.cs
- QuadraticBezierSegment.cs
- HtmlLink.cs
- StreamGeometry.cs
- BufferedOutputStream.cs
- HttpCapabilitiesBase.cs
- Emitter.cs
- TextOutput.cs
- ToolStrip.cs
- SrgsElementFactory.cs
- HwndAppCommandInputProvider.cs
- NestedContainer.cs
- HtmlInputReset.cs
- TemplateAction.cs
- ReflectionTypeLoadException.cs
- IpcClientChannel.cs
- TraceHandlerErrorFormatter.cs
- PageRequestManager.cs
- RemoteArgument.cs
- Util.cs
- StateItem.cs
- JsonFormatGeneratorStatics.cs
- TableRowCollection.cs
- HotCommands.cs
- ThousandthOfEmRealDoubles.cs
- ExceptionWrapper.cs
- LocatorBase.cs
- DetailsViewInsertedEventArgs.cs
- CollectionView.cs
- XmlSchemaImporter.cs
- ParserOptions.cs
- Method.cs
- invalidudtexception.cs
- EntityTypeEmitter.cs
- TemplateParser.cs
- ADRoleFactoryConfiguration.cs
- CodeNamespaceImport.cs
- AppModelKnownContentFactory.cs
- ChangePassword.cs
- EncoderFallback.cs
- Membership.cs
- WindowsUpDown.cs
- Schema.cs
- ImageDrawing.cs
- AutomationAttributeInfo.cs
- GeneralTransform.cs
- Stylesheet.cs
- PropertyChange.cs
- BaseComponentEditor.cs
- HttpCookie.cs
- MetafileHeader.cs
- ValidationRuleCollection.cs
- RowCache.cs
- PackageFilter.cs
- NotifyCollectionChangedEventArgs.cs
- ChannelSinkStacks.cs
- EntityTemplateFactory.cs
- PropertyCondition.cs
- ActionMismatchAddressingException.cs
- AllMembershipCondition.cs
- Model3DCollection.cs
- BrushConverter.cs
- CodeSnippetCompileUnit.cs
- TTSEvent.cs
- Icon.cs
- CompilerTypeWithParams.cs
- Point3DCollection.cs
- QilTernary.cs
- SqlComparer.cs
- addressfiltermode.cs
- WebBaseEventKeyComparer.cs
- DataGridHeaderBorder.cs
- DefaultTraceListener.cs
- ScrollViewerAutomationPeer.cs
- DoubleKeyFrameCollection.cs
- SoapSchemaExporter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- FreezableOperations.cs
- SelectionListDesigner.cs
- ActiveXMessageFormatter.cs
- GeneralTransform3DTo2D.cs
- CodeDelegateInvokeExpression.cs
- WorkflowServiceHostFactory.cs
- SelectionPattern.cs
- WebConfigurationManager.cs
- ConnectivityStatus.cs
- ScriptMethodAttribute.cs
- KnownTypesHelper.cs
- ReceiveSecurityHeaderElementManager.cs
- ObfuscateAssemblyAttribute.cs
- BitmapMetadataEnumerator.cs
- IdentityReference.cs
- BooleanAnimationBase.cs
- CompilerHelpers.cs
- ComboBoxAutomationPeer.cs
- BaseParser.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ManagementPath.cs
- XmlStreamNodeWriter.cs
- ArglessEventHandlerProxy.cs