Code:
/ DotNET / DotNET / 8.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
- TypeForwardedToAttribute.cs
- ContractMapping.cs
- BookmarkWorkItem.cs
- ConditionalWeakTable.cs
- CodeExpressionCollection.cs
- LocatorBase.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- AnonymousIdentificationSection.cs
- TdsParserHelperClasses.cs
- BamlRecordWriter.cs
- ParenthesizePropertyNameAttribute.cs
- GeneralTransform.cs
- Symbol.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ChannelToken.cs
- ErrorEventArgs.cs
- PackageProperties.cs
- Viewport2DVisual3D.cs
- ConnectorDragDropGlyph.cs
- Internal.cs
- HostedHttpTransportManager.cs
- ProfileService.cs
- PageSetupDialog.cs
- SizeIndependentAnimationStorage.cs
- ActivityXRefConverter.cs
- VirtualDirectoryMapping.cs
- DataPagerCommandEventArgs.cs
- ExceptionRoutedEventArgs.cs
- BindingExpressionUncommonField.cs
- IndicFontClient.cs
- _SslStream.cs
- EdgeProfileValidation.cs
- SplashScreen.cs
- Evaluator.cs
- XPathNodeIterator.cs
- Point3DCollection.cs
- RectAnimationUsingKeyFrames.cs
- Int32RectConverter.cs
- CodeExporter.cs
- TypeKeyValue.cs
- LocalizableAttribute.cs
- Rect.cs
- KeyGestureConverter.cs
- DataGridState.cs
- WebExceptionStatus.cs
- LiteralControl.cs
- ServiceNameElementCollection.cs
- PropertyInfoSet.cs
- TreeView.cs
- MailAddress.cs
- TransformerConfigurationWizardBase.cs
- GridViewRow.cs
- ComboBox.cs
- GetIndexBinder.cs
- IPHostEntry.cs
- QuaternionRotation3D.cs
- FrameworkElement.cs
- ExpandCollapseIsCheckedConverter.cs
- TransactionValidationBehavior.cs
- SQLResource.cs
- webbrowsersite.cs
- CellTreeNode.cs
- OleDbConnectionInternal.cs
- BinaryConverter.cs
- XmlSchemaAnnotated.cs
- EasingKeyFrames.cs
- Shape.cs
- AddDataControlFieldDialog.cs
- CompiledQuery.cs
- SaveFileDialog.cs
- FocusTracker.cs
- StringBlob.cs
- SQLDateTimeStorage.cs
- IPeerNeighbor.cs
- PageTheme.cs
- DeferredTextReference.cs
- XsdDuration.cs
- PointAnimationBase.cs
- RewritingProcessor.cs
- GestureRecognitionResult.cs
- WebPartEditorOkVerb.cs
- DebuggerAttributes.cs
- itemelement.cs
- ConfigurationCollectionAttribute.cs
- BuildResultCache.cs
- DataViewManager.cs
- TimeSpanStorage.cs
- PrimaryKeyTypeConverter.cs
- ColumnMapTranslator.cs
- OrderPreservingPipeliningMergeHelper.cs
- CurrentChangedEventManager.cs
- PagedDataSource.cs
- SiteMapHierarchicalDataSourceView.cs
- DrawingContextWalker.cs
- TextRangeEdit.cs
- Query.cs
- Int32.cs
- GenericRootAutomationPeer.cs
- DataSourceProvider.cs
- NominalTypeEliminator.cs