Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowVisualStateTracker.cs
- SettingsPropertyValueCollection.cs
- Int32AnimationBase.cs
- AnnotationMap.cs
- RuleSetBrowserDialog.cs
- Point3DCollectionConverter.cs
- ScrollableControlDesigner.cs
- SimpleFieldTemplateUserControl.cs
- ClipboardData.cs
- Int32.cs
- ComponentConverter.cs
- HttpResponseInternalWrapper.cs
- RoleService.cs
- TimeStampChecker.cs
- ConvertTextFrag.cs
- TypeResolver.cs
- FloatUtil.cs
- MediaTimeline.cs
- CodeMemberEvent.cs
- DoubleKeyFrameCollection.cs
- Vector3DAnimationUsingKeyFrames.cs
- SqlDataSourceFilteringEventArgs.cs
- StorageAssociationTypeMapping.cs
- TdsValueSetter.cs
- AnnouncementDispatcherAsyncResult.cs
- RuntimeIdentifierPropertyAttribute.cs
- TextParaClient.cs
- StrokeNode.cs
- DtrList.cs
- Context.cs
- ObjectManager.cs
- TableRowCollection.cs
- HttpCookiesSection.cs
- NumberFunctions.cs
- XmlObjectSerializerContext.cs
- SyntaxCheck.cs
- TabRenderer.cs
- PolyLineSegment.cs
- input.cs
- XslCompiledTransform.cs
- DataBoundLiteralControl.cs
- Geometry3D.cs
- ConfigurationLockCollection.cs
- IChannel.cs
- XmlRootAttribute.cs
- ProjectionNode.cs
- XmlConvert.cs
- TypeHelpers.cs
- FormCollection.cs
- RewritingSimplifier.cs
- SqlStatistics.cs
- ListDictionary.cs
- Lasso.cs
- DependencyPropertyChangedEventArgs.cs
- DatatypeImplementation.cs
- CompiledRegexRunner.cs
- NetNamedPipeSecurity.cs
- FileDialog_Vista_Interop.cs
- Cursors.cs
- HtmlTitle.cs
- CfgParser.cs
- TableStyle.cs
- TextCompositionEventArgs.cs
- Point.cs
- GeometryHitTestParameters.cs
- PerformanceCountersElement.cs
- ProfileGroupSettingsCollection.cs
- UidManager.cs
- Publisher.cs
- Binding.cs
- CodePrimitiveExpression.cs
- ExceptionHandler.cs
- ConfigXmlDocument.cs
- Util.cs
- CatalogPartCollection.cs
- EnumBuilder.cs
- QueryResults.cs
- CancellationTokenRegistration.cs
- UnsignedPublishLicense.cs
- ItemList.cs
- StyleSheetComponentEditor.cs
- WebBrowserUriTypeConverter.cs
- InfoCardKeyedHashAlgorithm.cs
- Normalization.cs
- OwnerDrawPropertyBag.cs
- TranslateTransform.cs
- ItemsPanelTemplate.cs
- DragDrop.cs
- FileNameEditor.cs
- DataGridCommandEventArgs.cs
- localization.cs
- OptimizedTemplateContent.cs
- Simplifier.cs
- StateMachineWorkflow.cs
- CultureTable.cs
- OleDbDataAdapter.cs
- HybridObjectCache.cs
- StaticExtensionConverter.cs
- BindingExpression.cs
- HighlightOverlayGlyph.cs