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
- ConstantSlot.cs
- UDPClient.cs
- SelectionRangeConverter.cs
- EncoderParameters.cs
- TextServicesManager.cs
- PointUtil.cs
- HtmlAnchor.cs
- XPSSignatureDefinition.cs
- GcHandle.cs
- ResourceReader.cs
- DataGridPagerStyle.cs
- CacheSection.cs
- CodeValidator.cs
- PaperSource.cs
- ControlEvent.cs
- DbProviderConfigurationHandler.cs
- SqlBooleanizer.cs
- WebPartCatalogCloseVerb.cs
- DbParameterHelper.cs
- MembershipAdapter.cs
- FlowDocumentReader.cs
- NullRuntimeConfig.cs
- cookiecontainer.cs
- RequestCachingSection.cs
- ProjectionNode.cs
- EncoderFallback.cs
- IOException.cs
- ReflectionHelper.cs
- InvalidateEvent.cs
- TransactionManager.cs
- XslException.cs
- PrinterResolution.cs
- FilterEventArgs.cs
- SingleResultAttribute.cs
- AnnotationMap.cs
- XmlNamespaceMapping.cs
- LinearQuaternionKeyFrame.cs
- XmlChildNodes.cs
- ConnectionOrientedTransportElement.cs
- DtrList.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ButtonField.cs
- HtmlImage.cs
- TextWriterTraceListener.cs
- MdImport.cs
- _BasicClient.cs
- PerformanceCounterManager.cs
- MultipleViewPattern.cs
- PreloadedPackages.cs
- TextParaLineResult.cs
- PageParser.cs
- HttpModuleActionCollection.cs
- CollectionView.cs
- DataGridAddNewRow.cs
- LayoutEvent.cs
- XmlAttributeAttribute.cs
- ClassicBorderDecorator.cs
- ClientUrlResolverWrapper.cs
- BCLDebug.cs
- GestureRecognizer.cs
- CalendarDay.cs
- DragDrop.cs
- PopupRoot.cs
- AssemblyResourceLoader.cs
- DbConnectionStringBuilder.cs
- SerializableAttribute.cs
- WCFServiceClientProxyGenerator.cs
- ProcessProtocolHandler.cs
- WsdlInspector.cs
- HMAC.cs
- filewebresponse.cs
- SelectedGridItemChangedEvent.cs
- EmptyQuery.cs
- Drawing.cs
- SingleConverter.cs
- PageHandlerFactory.cs
- SqlCacheDependencySection.cs
- CombinedGeometry.cs
- MsdtcClusterUtils.cs
- ScriptDescriptor.cs
- OdbcCommand.cs
- CellTreeNode.cs
- ConsumerConnectionPoint.cs
- ObjectDataSourceView.cs
- Helper.cs
- Model3DCollection.cs
- ComponentSerializationService.cs
- CurrentChangingEventManager.cs
- PropertyPathWorker.cs
- HTMLTagNameToTypeMapper.cs
- XmlSchemaCollection.cs
- MsmqQueue.cs
- XmlException.cs
- ColumnResizeUndoUnit.cs
- FrameworkRichTextComposition.cs
- X509Certificate2Collection.cs
- _BaseOverlappedAsyncResult.cs
- ScriptControlManager.cs
- TreeNodeBinding.cs
- FontInfo.cs