Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ActiveXHelper.cs
- MouseActionValueSerializer.cs
- ProjectionPruner.cs
- PartialArray.cs
- FormsIdentity.cs
- Emitter.cs
- DragEvent.cs
- DesignOnlyAttribute.cs
- CDSsyncETWBCLProvider.cs
- PageThemeBuildProvider.cs
- VectorAnimationBase.cs
- IPHostEntry.cs
- XmlValueConverter.cs
- SqlRemoveConstantOrderBy.cs
- Directory.cs
- Transform.cs
- CompilationLock.cs
- ListViewDataItem.cs
- CallContext.cs
- SmiRecordBuffer.cs
- DesignerAutoFormat.cs
- DbgUtil.cs
- TaiwanCalendar.cs
- SortDescriptionCollection.cs
- DesignSurfaceManager.cs
- CurrentChangingEventArgs.cs
- Metafile.cs
- COM2Properties.cs
- PolicyException.cs
- InvokeProviderWrapper.cs
- EmptyEnumerable.cs
- ProvideValueServiceProvider.cs
- ChtmlTextWriter.cs
- BitVector32.cs
- StandardCommands.cs
- MultiPartWriter.cs
- ConfigurationPermission.cs
- RSAPKCS1SignatureDeformatter.cs
- DtrList.cs
- Delegate.cs
- Sql8ConformanceChecker.cs
- ProcessHostServerConfig.cs
- DetailsViewCommandEventArgs.cs
- XmlAttributeAttribute.cs
- LineServicesCallbacks.cs
- BamlLocalizableResourceKey.cs
- TemplateInstanceAttribute.cs
- PointAnimationUsingPath.cs
- WindowsButton.cs
- Quack.cs
- SerializeAbsoluteContext.cs
- NTAccount.cs
- WebPartConnectVerb.cs
- LinkedResource.cs
- AuthorizationRule.cs
- TextSelection.cs
- Timer.cs
- DrawingContext.cs
- DelegateSerializationHolder.cs
- UrlAuthFailedErrorFormatter.cs
- TraceHwndHost.cs
- EntityTypeBase.cs
- ETagAttribute.cs
- TextControlDesigner.cs
- XmlSortKeyAccumulator.cs
- DetailsViewModeEventArgs.cs
- StructureChangedEventArgs.cs
- CompilationSection.cs
- ZoneIdentityPermission.cs
- QualifiedCellIdBoolean.cs
- RsaKeyIdentifierClause.cs
- XmlExceptionHelper.cs
- ByteStack.cs
- Utils.cs
- KeyInfo.cs
- DataGridView.cs
- SqlError.cs
- WaitHandle.cs
- MissingMethodException.cs
- ModelToObjectValueConverter.cs
- GlyphElement.cs
- XmlBinaryWriterSession.cs
- SqlDataSourceView.cs
- messageonlyhwndwrapper.cs
- Number.cs
- AliasedExpr.cs
- ResourceCategoryAttribute.cs
- DataGridTemplateColumn.cs
- ReferencedAssembly.cs
- DataColumnMappingCollection.cs
- ResourceDescriptionAttribute.cs
- SmiMetaData.cs
- AtomServiceDocumentSerializer.cs
- GenericEnumerator.cs
- String.cs
- ToolStripGripRenderEventArgs.cs
- XmlWriter.cs
- UpDownBaseDesigner.cs
- TemplateField.cs
- VisualStates.cs