Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Threading / ThreadAbortException.cs / 1 / ThreadAbortException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ThreadAbortException ** ** ** Purpose: An exception class which is thrown into a thread to cause it to ** abort. This is a special non-catchable exception and results in ** the thread's death. This is thrown by the VM only and can NOT be ** thrown by any user thread, and subclassing this is useless. ** ** =============================================================================*/ namespace System.Threading { using System; using System.Runtime.Serialization; using System.Runtime.CompilerServices; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public sealed class ThreadAbortException : SystemException { private ThreadAbortException() : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadAbort)) { SetErrorCode(__HResults.COR_E_THREADABORTED); } //required for serialization internal ThreadAbortException(SerializationInfo info, StreamingContext context) : base(info, context) { } public Object ExceptionState { get {return Thread.CurrentThread.AbortReason;} } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Viewport3DAutomationPeer.cs
- ListViewDeleteEventArgs.cs
- AnimatedTypeHelpers.cs
- ModelPerspective.cs
- CommonRemoteMemoryBlock.cs
- PerfCounterSection.cs
- BaseParser.cs
- PointLight.cs
- listitem.cs
- DesignerActionTextItem.cs
- AttributeProviderAttribute.cs
- UserControl.cs
- PagedControl.cs
- MenuScrollingVisibilityConverter.cs
- EndpointAddress10.cs
- UserMapPath.cs
- TypeProvider.cs
- SrgsElementList.cs
- Events.cs
- PreApplicationStartMethodAttribute.cs
- FastEncoder.cs
- Relationship.cs
- DictionaryGlobals.cs
- ScriptModule.cs
- TreeViewImageGenerator.cs
- DataRowChangeEvent.cs
- ContainerTracking.cs
- CreateParams.cs
- ExtensibleClassFactory.cs
- indexingfiltermarshaler.cs
- SqlDataAdapter.cs
- StateMachineWorkflow.cs
- Animatable.cs
- PackageProperties.cs
- Debug.cs
- Processor.cs
- TemplateControlBuildProvider.cs
- GeneralTransform.cs
- TabletCollection.cs
- HttpCachePolicy.cs
- BinaryVersion.cs
- OpacityConverter.cs
- JoinTreeNode.cs
- CacheDict.cs
- xamlnodes.cs
- ByteFacetDescriptionElement.cs
- StaticDataManager.cs
- TemplatePropertyEntry.cs
- DataGridViewElement.cs
- GeometryDrawing.cs
- TraceListeners.cs
- AnnotationHighlightLayer.cs
- Point3DAnimationUsingKeyFrames.cs
- WebHttpDispatchOperationSelectorData.cs
- DaylightTime.cs
- SelectedDatesCollection.cs
- NodeInfo.cs
- WebPartConnectionsDisconnectVerb.cs
- RubberbandSelector.cs
- TemplateControl.cs
- sqlnorm.cs
- MsmqIntegrationSecurityElement.cs
- Semaphore.cs
- ReceiveActivityDesignerTheme.cs
- FormViewUpdatedEventArgs.cs
- FontStretchConverter.cs
- WebPageTraceListener.cs
- SessionSwitchEventArgs.cs
- LayoutUtils.cs
- XhtmlBasicValidationSummaryAdapter.cs
- TdsParserHelperClasses.cs
- ResourcePool.cs
- JsonDataContract.cs
- ReflectionUtil.cs
- CallTemplateAction.cs
- ProfilePropertySettings.cs
- SqlUserDefinedAggregateAttribute.cs
- GridItemPattern.cs
- LinkClickEvent.cs
- PathFigure.cs
- ToolStripSettings.cs
- ObjectAnimationBase.cs
- WindowsProgressbar.cs
- TraceRecord.cs
- FixedStringLookup.cs
- DbConnectionPoolGroup.cs
- DesignerVerb.cs
- EventMappingSettingsCollection.cs
- Scripts.cs
- FontUnit.cs
- HostedImpersonationContext.cs
- ConfigurationLockCollection.cs
- ControlAdapter.cs
- Point3DConverter.cs
- ObjectDataSourceMethodEventArgs.cs
- VerificationAttribute.cs
- GeometryHitTestParameters.cs
- UnsafePeerToPeerMethods.cs
- PhonemeConverter.cs
- XamlFilter.cs