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
- CodeArrayCreateExpression.cs
- CryptographicAttribute.cs
- ToolStripMenuItemCodeDomSerializer.cs
- WizardForm.cs
- ConfigurationManagerHelperFactory.cs
- InputProcessorProfiles.cs
- ExponentialEase.cs
- CollectionView.cs
- VarInfo.cs
- HttpPostClientProtocol.cs
- PopOutPanel.cs
- XmlTextAttribute.cs
- TCPClient.cs
- PerformanceCounterPermission.cs
- DropDownButton.cs
- SaveRecipientRequest.cs
- ComponentEditorForm.cs
- DataGridViewBindingCompleteEventArgs.cs
- AssociationSetEnd.cs
- TextElementEnumerator.cs
- EmptyStringExpandableObjectConverter.cs
- SourceSwitch.cs
- FileDialog_Vista_Interop.cs
- XsdDateTime.cs
- JoinGraph.cs
- _TransmitFileOverlappedAsyncResult.cs
- SimpleModelProvider.cs
- DataServiceException.cs
- HttpServerVarsCollection.cs
- BasicHttpSecurity.cs
- ListCollectionView.cs
- RewritingValidator.cs
- LineInfo.cs
- Lookup.cs
- CultureInfoConverter.cs
- XamlSerializationHelper.cs
- EdmFunctions.cs
- SecurityMessageProperty.cs
- ExpressionBuilderContext.cs
- WorkflowMarkupSerializer.cs
- FixedStringLookup.cs
- SoapFault.cs
- HebrewNumber.cs
- TrackingParameters.cs
- MailAddress.cs
- RemoteCryptoRsaServiceProvider.cs
- StylusPlugInCollection.cs
- CriticalFinalizerObject.cs
- SecurityTraceRecordHelper.cs
- XmlSecureResolver.cs
- TextStore.cs
- NavigationProperty.cs
- BitFlagsGenerator.cs
- ProviderUtil.cs
- TextChange.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- XhtmlBasicLiteralTextAdapter.cs
- SafeWaitHandle.cs
- FixedPageProcessor.cs
- EndOfStreamException.cs
- TimelineClockCollection.cs
- ComponentRenameEvent.cs
- Debug.cs
- PhoneCallDesigner.cs
- Point4DConverter.cs
- TraceFilter.cs
- CodeThrowExceptionStatement.cs
- ServerValidateEventArgs.cs
- DesignerRegionCollection.cs
- RangeBaseAutomationPeer.cs
- DecoderFallback.cs
- CompiledIdentityConstraint.cs
- RuntimeConfigLKG.cs
- UInt16Converter.cs
- RelationshipEndMember.cs
- ModuleElement.cs
- XmlNamespaceMapping.cs
- HwndSourceParameters.cs
- EntityCommandCompilationException.cs
- HttpCacheVary.cs
- IndicCharClassifier.cs
- PropertyRecord.cs
- EdmComplexTypeAttribute.cs
- SqlBulkCopy.cs
- WebBrowserUriTypeConverter.cs
- RewritingProcessor.cs
- SizeAnimationClockResource.cs
- PartBasedPackageProperties.cs
- EndpointPerformanceCounters.cs
- DisplayMemberTemplateSelector.cs
- LayoutEngine.cs
- FreezableDefaultValueFactory.cs
- SafeNativeMethods.cs
- Debugger.cs
- DataSourceBooleanViewSchemaConverter.cs
- UIElement.cs
- ClientTargetCollection.cs
- LabelEditEvent.cs
- TypeValidationEventArgs.cs