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
- Method.cs
- PerformanceCounterCategory.cs
- BitmapMetadata.cs
- ModelFunction.cs
- Comparer.cs
- OdbcEnvironment.cs
- FunctionDetailsReader.cs
- QueryCacheKey.cs
- CoreChannel.cs
- ZipIOBlockManager.cs
- StylusButtonEventArgs.cs
- Brushes.cs
- PropertyMetadata.cs
- PTConverter.cs
- Logging.cs
- IfAction.cs
- ExpressionVisitor.cs
- TraceData.cs
- EdmToObjectNamespaceMap.cs
- SubMenuStyleCollection.cs
- SpeakInfo.cs
- RectConverter.cs
- SoapAttributeOverrides.cs
- GridSplitterAutomationPeer.cs
- WebBrowserUriTypeConverter.cs
- RtfToken.cs
- SmtpException.cs
- ComPlusContractBehavior.cs
- CharacterBufferReference.cs
- HuffCodec.cs
- DesignerVerb.cs
- BindingMAnagerBase.cs
- BufferModeSettings.cs
- PaintEvent.cs
- EventEntry.cs
- LayoutEvent.cs
- TemplateDefinition.cs
- EntitySet.cs
- FirstQueryOperator.cs
- RsaEndpointIdentity.cs
- LoginUtil.cs
- OleDbDataAdapter.cs
- CaseExpr.cs
- PageSetupDialog.cs
- AudioException.cs
- TextTrailingCharacterEllipsis.cs
- HtmlInputHidden.cs
- ExtensionSimplifierMarkupObject.cs
- MultiPropertyDescriptorGridEntry.cs
- MarginCollapsingState.cs
- SelectionItemProviderWrapper.cs
- BeginStoryboard.cs
- AssemblySettingAttributes.cs
- unitconverter.cs
- HttpCacheVary.cs
- XmlIlTypeHelper.cs
- ListViewItem.cs
- UrlAuthorizationModule.cs
- PageEventArgs.cs
- localization.cs
- CmsInterop.cs
- ResourceKey.cs
- XamlPointCollectionSerializer.cs
- MimeObjectFactory.cs
- LinearGradientBrush.cs
- CompensatableTransactionScopeActivityDesigner.cs
- ISCIIEncoding.cs
- DataGridPageChangedEventArgs.cs
- MarkupCompilePass2.cs
- HttpFormatExtensions.cs
- ExpressionEditorAttribute.cs
- ToolStripKeyboardHandlingService.cs
- DataBoundControl.cs
- TraceLog.cs
- EntityViewContainer.cs
- XmlWriterDelegator.cs
- CodeDelegateInvokeExpression.cs
- Util.cs
- IIS7WorkerRequest.cs
- ByteRangeDownloader.cs
- GridViewRowCollection.cs
- BasePattern.cs
- UInt64Storage.cs
- BoundField.cs
- Identifier.cs
- TrackingServices.cs
- ApplicationDirectoryMembershipCondition.cs
- ObjectCacheHost.cs
- SqlCacheDependency.cs
- NumericUpDownAccelerationCollection.cs
- SemaphoreSecurity.cs
- _NegoStream.cs
- TraceSource.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DocumentPageHost.cs
- TextEditorDragDrop.cs
- RepeaterItemEventArgs.cs
- SchemaElementDecl.cs
- Bind.cs
- ConfigurationValues.cs