Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / CancelEventArgs.cs / 1 / 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; } } } }/// 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
- ChtmlTextWriter.cs
- XmlParser.cs
- List.cs
- WeakReadOnlyCollection.cs
- ProvidersHelper.cs
- BamlBinaryReader.cs
- ExpressionTextBox.xaml.cs
- Dispatcher.cs
- ExpressionBindings.cs
- Section.cs
- CodeDOMUtility.cs
- SecureConversationVersion.cs
- BuildManager.cs
- RichTextBox.cs
- Mutex.cs
- OleDbWrapper.cs
- ManagementEventWatcher.cs
- MultipartContentParser.cs
- RunWorkerCompletedEventArgs.cs
- AnnotationHighlightLayer.cs
- ListViewItem.cs
- EqualityComparer.cs
- HttpHandlersSection.cs
- ActivityStatusChangeEventArgs.cs
- LinqDataSourceInsertEventArgs.cs
- FileSystemInfo.cs
- OpacityConverter.cs
- LoadGrammarCompletedEventArgs.cs
- BamlResourceDeserializer.cs
- DocumentPageView.cs
- LOSFormatter.cs
- DateTimeFormatInfoScanner.cs
- SecurityPolicySection.cs
- Pair.cs
- XmlSortKey.cs
- Perspective.cs
- basemetadatamappingvisitor.cs
- VersionedStreamOwner.cs
- XmlAnyAttributeAttribute.cs
- SystemSounds.cs
- PropertyGridEditorPart.cs
- EntitySqlQueryState.cs
- XmlBinaryReader.cs
- HyperlinkAutomationPeer.cs
- HttpFileCollection.cs
- TextSegment.cs
- InvariantComparer.cs
- RegexBoyerMoore.cs
- MenuStrip.cs
- ValueExpressions.cs
- Roles.cs
- EnvironmentPermission.cs
- PropertyInfoSet.cs
- SynchronizationContext.cs
- ToolStripArrowRenderEventArgs.cs
- RegexStringValidator.cs
- HtmlFormParameterReader.cs
- DateTimeStorage.cs
- PipeSecurity.cs
- ObjectQueryExecutionPlan.cs
- SectionXmlInfo.cs
- BitmapVisualManager.cs
- SettingsPropertyCollection.cs
- DesignerAutoFormat.cs
- InstanceStoreQueryResult.cs
- URL.cs
- DataSourceDesigner.cs
- LinkedList.cs
- UpdatePanelTriggerCollection.cs
- unsafeIndexingFilterStream.cs
- ThreadExceptionDialog.cs
- DataSourceConverter.cs
- VSWCFServiceContractGenerator.cs
- XsltContext.cs
- EraserBehavior.cs
- ShimAsPublicXamlType.cs
- CustomError.cs
- ObjectAnimationUsingKeyFrames.cs
- CriticalFinalizerObject.cs
- DPTypeDescriptorContext.cs
- BrowserDefinition.cs
- OptimalBreakSession.cs
- ContractComponent.cs
- WaitHandleCannotBeOpenedException.cs
- BinaryKeyIdentifierClause.cs
- ContextMarshalException.cs
- ViewBox.cs
- Binding.cs
- SharedPerformanceCounter.cs
- TimelineGroup.cs
- DBParameter.cs
- SHA512.cs
- NullableLongAverageAggregationOperator.cs
- ObjectItemCollection.cs
- Assert.cs
- NotifyCollectionChangedEventArgs.cs
- AppearanceEditorPart.cs
- RawStylusInputCustomData.cs
- AutoGeneratedFieldProperties.cs
- IntegerCollectionEditor.cs