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
- ConditionCollection.cs
- XmlMemberMapping.cs
- QilReplaceVisitor.cs
- ConsumerConnectionPointCollection.cs
- MonitorWrapper.cs
- SynchronousReceiveBehavior.cs
- ThaiBuddhistCalendar.cs
- CommandLibraryHelper.cs
- MembershipUser.cs
- OdbcInfoMessageEvent.cs
- IndentedWriter.cs
- DocumentOrderComparer.cs
- ClientTarget.cs
- DbProviderFactory.cs
- XPathCompileException.cs
- RuleAction.cs
- ExecutionContext.cs
- CheckBoxFlatAdapter.cs
- MimeMultiPart.cs
- ImageField.cs
- AssemblyFilter.cs
- DesignSurfaceManager.cs
- followingquery.cs
- DelegateOutArgument.cs
- BitmapEffectDrawingContextWalker.cs
- CacheDict.cs
- ContentPlaceHolderDesigner.cs
- Section.cs
- ChildrenQuery.cs
- DefaultTextStore.cs
- DefaultBindingPropertyAttribute.cs
- RegisteredHiddenField.cs
- RegexCompilationInfo.cs
- ParameterReplacerVisitor.cs
- BinaryFormatterWriter.cs
- Image.cs
- peersecurityelement.cs
- XamlValidatingReader.cs
- PublishLicense.cs
- ScriptManagerProxy.cs
- TableDetailsCollection.cs
- DataTrigger.cs
- X509UI.cs
- HTMLTagNameToTypeMapper.cs
- StringBlob.cs
- SQLDoubleStorage.cs
- Semaphore.cs
- WmpBitmapEncoder.cs
- CapabilitiesAssignment.cs
- SmtpSection.cs
- followingsibling.cs
- ComEventsMethod.cs
- VisualBrush.cs
- _UriSyntax.cs
- SQLRoleProvider.cs
- LinqDataSourceEditData.cs
- DataGridViewAutoSizeModeEventArgs.cs
- InputBinding.cs
- OpacityConverter.cs
- XhtmlBasicCommandAdapter.cs
- CompiledXpathExpr.cs
- PointF.cs
- XmlDataSourceView.cs
- DependencyPropertyDescriptor.cs
- ExportFileRequest.cs
- PointAnimationUsingPath.cs
- Dispatcher.cs
- MsmqIntegrationProcessProtocolHandler.cs
- HttpsChannelFactory.cs
- HtmlElementErrorEventArgs.cs
- SupportingTokenParameters.cs
- CompensationParticipant.cs
- WinFormsSecurity.cs
- AsyncOperation.cs
- DateTimeConverter2.cs
- smtpconnection.cs
- Timeline.cs
- Compiler.cs
- FormViewUpdateEventArgs.cs
- SingleResultAttribute.cs
- SqlStatistics.cs
- NotFiniteNumberException.cs
- EditingCommands.cs
- PrimitiveType.cs
- Overlapped.cs
- RightsManagementPermission.cs
- AnnotationResourceCollection.cs
- ResourceKey.cs
- FunctionDescription.cs
- MenuItem.cs
- HTTPNotFoundHandler.cs
- InlineUIContainer.cs
- XmlSchemaComplexContent.cs
- CqlErrorHelper.cs
- EntityDataSourceContainerNameConverter.cs
- TextMetrics.cs
- PageAdapter.cs
- ToolStripManager.cs
- OutputCacheProfileCollection.cs
- TimeSpanSecondsConverter.cs