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
- HandleCollector.cs
- XPathSelectionIterator.cs
- UserControlAutomationPeer.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- DefaultParameterValueAttribute.cs
- XmlSchemaInclude.cs
- ProcessHostServerConfig.cs
- EditorAttributeInfo.cs
- HMAC.cs
- AspNetRouteServiceHttpHandler.cs
- ConfigurationStrings.cs
- IListConverters.cs
- SevenBitStream.cs
- SafeBitVector32.cs
- LocatorGroup.cs
- PrinterSettings.cs
- CompiledELinqQueryState.cs
- RadioButtonPopupAdapter.cs
- Suspend.cs
- SharedPerformanceCounter.cs
- _AcceptOverlappedAsyncResult.cs
- XmlSchemaObjectTable.cs
- EventHandlersDesigner.cs
- RowType.cs
- ExecutedRoutedEventArgs.cs
- GroupItem.cs
- IQueryable.cs
- WindowsFormsHostAutomationPeer.cs
- ApplicationSecurityManager.cs
- XmlDomTextWriter.cs
- DragSelectionMessageFilter.cs
- PerformanceCounterManager.cs
- DataViewSettingCollection.cs
- HwndMouseInputProvider.cs
- SignedInfo.cs
- XmlSerializerVersionAttribute.cs
- ScrollPattern.cs
- HotSpot.cs
- SQLDateTime.cs
- CapabilitiesUse.cs
- SqlParameter.cs
- SpellerError.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ComPlusInstanceProvider.cs
- StringExpressionSet.cs
- InvokeGenerator.cs
- GeometryModel3D.cs
- NodeFunctions.cs
- DrawListViewSubItemEventArgs.cs
- ColumnHeader.cs
- WindowsGrip.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XPathSingletonIterator.cs
- EventNotify.cs
- MouseOverProperty.cs
- HttpEncoder.cs
- ProbeDuplexCD1AsyncResult.cs
- ExtendLockAsyncResult.cs
- BitmapMetadataBlob.cs
- SystemIPGlobalProperties.cs
- WorkBatch.cs
- PageContentCollection.cs
- Logging.cs
- Odbc32.cs
- ProfilePropertyNameValidator.cs
- CodeObject.cs
- Decorator.cs
- MethodToken.cs
- XmlSchemaSimpleTypeRestriction.cs
- SqlCacheDependencySection.cs
- RIPEMD160Managed.cs
- DiagnosticTraceSource.cs
- ProviderCommandInfoUtils.cs
- Compiler.cs
- NameSpaceExtractor.cs
- DefaultPropertyAttribute.cs
- BaseAppDomainProtocolHandler.cs
- OperationExecutionFault.cs
- TargetFrameworkUtil.cs
- GroupBoxAutomationPeer.cs
- HandlerWithFactory.cs
- X509IssuerSerialKeyIdentifierClause.cs
- Thumb.cs
- PerformanceCounterPermissionEntryCollection.cs
- Stackframe.cs
- ChangeBlockUndoRecord.cs
- SubpageParaClient.cs
- ECDsa.cs
- JapaneseCalendar.cs
- DataGridGeneralPage.cs
- ReferencedAssembly.cs
- Timeline.cs
- Peer.cs
- RichTextBox.cs
- WindowsStatic.cs
- PackWebRequest.cs
- TextTreeExtractElementUndoUnit.cs
- WebPart.cs
- IncomingWebResponseContext.cs
- GridViewItemAutomationPeer.cs