Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / ThreadAbortException.cs / 1305376 / 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 { [System.Security.SecuritySafeCritical] // auto-generated 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 { [System.Security.SecuritySafeCritical] // auto-generated 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
- Overlapped.cs
- HwndProxyElementProvider.cs
- SinglePhaseEnlistment.cs
- AnnotationResourceCollection.cs
- Catch.cs
- AddingNewEventArgs.cs
- WmlObjectListAdapter.cs
- XmlName.cs
- PasswordRecovery.cs
- BookmarkUndoUnit.cs
- PointAnimationBase.cs
- SignedXmlDebugLog.cs
- BuildProviderAppliesToAttribute.cs
- CodeExpressionRuleDeclaration.cs
- SQLCharsStorage.cs
- Transform3DGroup.cs
- CompressedStack.cs
- HandlerBase.cs
- CustomWebEventKey.cs
- MemberMaps.cs
- BinaryUtilClasses.cs
- XmlDictionaryReader.cs
- ExtenderControl.cs
- _HTTPDateParse.cs
- DesignerVerbCollection.cs
- SmtpReplyReader.cs
- XPathDocumentNavigator.cs
- ListViewDesigner.cs
- TdsParserStaticMethods.cs
- ForeignKeyFactory.cs
- WindowsSpinner.cs
- SafeNativeMethods.cs
- RegistrySecurity.cs
- XmlSchemaGroupRef.cs
- HtmlInputButton.cs
- LogSwitch.cs
- VariantWrapper.cs
- TraceListener.cs
- RequestNavigateEventArgs.cs
- ObjectQueryProvider.cs
- ProviderManager.cs
- DbConnectionClosed.cs
- ObsoleteAttribute.cs
- EventLogInternal.cs
- TreeNodeStyleCollectionEditor.cs
- TextBlock.cs
- HttpWebRequestElement.cs
- MultiPageTextView.cs
- _NtlmClient.cs
- QueryAccessibilityHelpEvent.cs
- SharedUtils.cs
- CodeParameterDeclarationExpression.cs
- BufferedGraphicsManager.cs
- DeferredElementTreeState.cs
- TimeIntervalCollection.cs
- CaseInsensitiveComparer.cs
- ProcessThread.cs
- ReferentialConstraintRoleElement.cs
- relpropertyhelper.cs
- DynamicResourceExtensionConverter.cs
- __ComObject.cs
- XmlExtensionFunction.cs
- DependsOnAttribute.cs
- SkewTransform.cs
- CodeTypeParameter.cs
- PreviewPrintController.cs
- ExtensionWindowHeader.cs
- HostingEnvironment.cs
- ConfigurationPropertyCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- TdsEnums.cs
- InputLanguageSource.cs
- EffectiveValueEntry.cs
- XmlSchemaImporter.cs
- ElementFactory.cs
- EntityDataSourceColumn.cs
- AnimatedTypeHelpers.cs
- SqlDependencyListener.cs
- JsonServiceDocumentSerializer.cs
- StringTraceRecord.cs
- XmlIgnoreAttribute.cs
- PackageRelationshipSelector.cs
- NavigationProgressEventArgs.cs
- TextCharacters.cs
- XComponentModel.cs
- MarshalDirectiveException.cs
- MenuItemStyleCollection.cs
- SelectionPatternIdentifiers.cs
- SqlCommandSet.cs
- TokenBasedSet.cs
- CrossContextChannel.cs
- NamespaceEmitter.cs
- Axis.cs
- SafeCryptContextHandle.cs
- EncodingInfo.cs
- ClrProviderManifest.cs
- SHA1CryptoServiceProvider.cs
- PtsPage.cs
- DataGridViewImageCell.cs
- TransformConverter.cs