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
- RolePrincipal.cs
- XmlEntityReference.cs
- WebSysDefaultValueAttribute.cs
- ListCollectionView.cs
- SessionSwitchEventArgs.cs
- XsdBuildProvider.cs
- ExceptionUtility.cs
- InputLanguage.cs
- PageAsyncTaskManager.cs
- XmlSequenceWriter.cs
- CodeGeneratorOptions.cs
- AppModelKnownContentFactory.cs
- SeverityFilter.cs
- Model3DGroup.cs
- DataConnectionHelper.cs
- DirectionalLight.cs
- ListViewGroupItemCollection.cs
- userdatakeys.cs
- SerializationException.cs
- ControlBuilder.cs
- ComEventsSink.cs
- _CookieModule.cs
- SerializableAttribute.cs
- Imaging.cs
- SoapProtocolImporter.cs
- Int16.cs
- MenuItemStyleCollection.cs
- DebugInfoGenerator.cs
- ByteArrayHelperWithString.cs
- ChangeTracker.cs
- DelegatingTypeDescriptionProvider.cs
- Size3D.cs
- DescendentsWalker.cs
- MemberDomainMap.cs
- RoleManagerEventArgs.cs
- Focus.cs
- BaseCodeDomTreeGenerator.cs
- UpWmlPageAdapter.cs
- SqlBooleanizer.cs
- MbpInfo.cs
- PermissionSetTriple.cs
- MarkupCompilePass1.cs
- InternalsVisibleToAttribute.cs
- SocketException.cs
- AsnEncodedData.cs
- InnerItemCollectionView.cs
- ListViewTableCell.cs
- ValidationResult.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ResourceExpressionBuilder.cs
- PackageStore.cs
- MobileUITypeEditor.cs
- HttpPostedFile.cs
- PresentationSource.cs
- ImageButton.cs
- EventDescriptor.cs
- TransformCryptoHandle.cs
- DeviceFiltersSection.cs
- WinEventHandler.cs
- FormViewPageEventArgs.cs
- VerificationException.cs
- LoginDesignerUtil.cs
- ImageList.cs
- TabletCollection.cs
- InstallHelper.cs
- DeviceSpecific.cs
- XmlSerializerFactory.cs
- COM2ExtendedUITypeEditor.cs
- DataTableMappingCollection.cs
- OutputWindow.cs
- XmlnsDictionary.cs
- XmlAutoDetectWriter.cs
- TdsParserStateObject.cs
- MenuTracker.cs
- ActivityDesigner.cs
- SqlDependencyUtils.cs
- SuppressMessageAttribute.cs
- WebPartConnectionsConnectVerb.cs
- FacetValueContainer.cs
- EmptyStringExpandableObjectConverter.cs
- AsnEncodedData.cs
- PropertyDescriptor.cs
- TrustManagerMoreInformation.cs
- SecurityBindingElement.cs
- filewebrequest.cs
- DataObjectEventArgs.cs
- SessionStateUtil.cs
- FileDataSourceCache.cs
- PackageStore.cs
- TreeView.cs
- X509Certificate.cs
- CellRelation.cs
- Point4D.cs
- DiffuseMaterial.cs
- GroupItemAutomationPeer.cs
- SqlDataSourceCommandEventArgs.cs
- IncrementalCompileAnalyzer.cs
- DataStorage.cs
- RuntimeEnvironment.cs
- SerialStream.cs