Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataColumnChangeEvent.cs
- BitmapEncoder.cs
- SQLSingleStorage.cs
- JournalEntryStack.cs
- SQLBytesStorage.cs
- TraceHandlerErrorFormatter.cs
- TypeSemantics.cs
- InstanceData.cs
- DataGridViewLinkColumn.cs
- UniqueTransportManagerRegistration.cs
- SqlCacheDependency.cs
- DataRelationCollection.cs
- DependencyPropertyChangedEventArgs.cs
- IntSecurity.cs
- SqlDataSourceView.cs
- ArrayHelper.cs
- ElementUtil.cs
- AsyncDataRequest.cs
- PeerResolverMode.cs
- OdbcConnection.cs
- ContactManager.cs
- LongValidatorAttribute.cs
- MissingFieldException.cs
- EnumBuilder.cs
- NamespaceInfo.cs
- RangeBase.cs
- XmlSchemaAll.cs
- ExternalCalls.cs
- XPathDocumentNavigator.cs
- AppSecurityManager.cs
- GridItemPatternIdentifiers.cs
- XmlUtil.cs
- VideoDrawing.cs
- BooleanFunctions.cs
- AnimatedTypeHelpers.cs
- PermissionAttributes.cs
- WebFormsRootDesigner.cs
- LinqDataSourceStatusEventArgs.cs
- ExtendedProperty.cs
- URLMembershipCondition.cs
- FieldBuilder.cs
- DrawingContextWalker.cs
- FlowLayoutPanel.cs
- IgnoreFileBuildProvider.cs
- RowsCopiedEventArgs.cs
- ProcessProtocolHandler.cs
- ArrayWithOffset.cs
- XmlFormatExtensionPointAttribute.cs
- FixedSOMLineRanges.cs
- BufferedGenericXmlSecurityToken.cs
- InputBinding.cs
- VerificationAttribute.cs
- MimeObjectFactory.cs
- SimpleMailWebEventProvider.cs
- UriParserTemplates.cs
- TemplateControlParser.cs
- UrlMappingCollection.cs
- QilTypeChecker.cs
- LoggedException.cs
- LicenseException.cs
- ActionMismatchAddressingException.cs
- TextTrailingWordEllipsis.cs
- TableColumn.cs
- TextHidden.cs
- ForeignKeyConstraint.cs
- PanelStyle.cs
- AuthenticateEventArgs.cs
- LogLogRecordEnumerator.cs
- EllipseGeometry.cs
- BindingNavigator.cs
- DateTimeOffsetAdapter.cs
- XmlSchemaResource.cs
- EntityDataSourceWizardForm.cs
- FontFamily.cs
- RegexReplacement.cs
- x509utils.cs
- ClientConfigurationSystem.cs
- SerialReceived.cs
- ValidatingReaderNodeData.cs
- WebPartCancelEventArgs.cs
- IncrementalReadDecoders.cs
- NavigationProgressEventArgs.cs
- ListControlDataBindingHandler.cs
- CodeArrayCreateExpression.cs
- ViewStateException.cs
- ModelVisual3D.cs
- PropertyValueUIItem.cs
- NativeMethods.cs
- ClientTargetSection.cs
- ConnectionManagementElementCollection.cs
- EntityDataReader.cs
- DataObjectCopyingEventArgs.cs
- ListBox.cs
- XamlBrushSerializer.cs
- UnsafeNativeMethods.cs
- Gdiplus.cs
- OracleRowUpdatedEventArgs.cs
- SafeFileMapViewHandle.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Button.cs