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
- OdbcRowUpdatingEvent.cs
- SafeWaitHandle.cs
- GotoExpression.cs
- ClipboardProcessor.cs
- ExtendedPropertyDescriptor.cs
- UserControlCodeDomTreeGenerator.cs
- ListItemsPage.cs
- DataGridViewRowHeaderCell.cs
- SiteMapNodeItemEventArgs.cs
- XsltException.cs
- FloaterParaClient.cs
- DataTableNameHandler.cs
- ParallelTimeline.cs
- DataGridViewCheckBoxCell.cs
- ScriptModule.cs
- WSHttpBindingCollectionElement.cs
- PartitionResolver.cs
- Int16AnimationBase.cs
- FilteredReadOnlyMetadataCollection.cs
- RenderDataDrawingContext.cs
- DataObjectPastingEventArgs.cs
- ImportCatalogPart.cs
- OracleConnection.cs
- TypeInitializationException.cs
- TagNameToTypeMapper.cs
- dataSvcMapFileLoader.cs
- HostedElements.cs
- ArrayConverter.cs
- ContentValidator.cs
- ShapingWorkspace.cs
- DuplicateDetector.cs
- SafeRightsManagementHandle.cs
- ObjectQuery.cs
- PassportAuthenticationModule.cs
- Roles.cs
- EdmToObjectNamespaceMap.cs
- ShaderRenderModeValidation.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SmiEventSink_DeferedProcessing.cs
- ObjectToModelValueConverter.cs
- DbConnectionPoolOptions.cs
- WebReferencesBuildProvider.cs
- UnsafeNativeMethods.cs
- StructuralCache.cs
- OutputScopeManager.cs
- EventMappingSettingsCollection.cs
- ChangeProcessor.cs
- DataGridViewSortCompareEventArgs.cs
- OperationFormatUse.cs
- InstanceData.cs
- BindingWorker.cs
- EventLevel.cs
- InnerItemCollectionView.cs
- SponsorHelper.cs
- PTProvider.cs
- IUnknownConstantAttribute.cs
- ObjectView.cs
- DelegatingStream.cs
- StreamWriter.cs
- CriticalFinalizerObject.cs
- LambdaCompiler.Generated.cs
- ConstraintConverter.cs
- SqlTransaction.cs
- FontDialog.cs
- SafeTokenHandle.cs
- QueryOperatorEnumerator.cs
- SqlDataSourceEnumerator.cs
- XmlAttributeHolder.cs
- FixedTextContainer.cs
- AppSecurityManager.cs
- EntitySqlException.cs
- StreamingContext.cs
- ManagementDateTime.cs
- NavigateEvent.cs
- DependencyPropertyAttribute.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- TypeSemantics.cs
- DataListGeneralPage.cs
- CachingHintValidation.cs
- HttpPostedFileWrapper.cs
- MetadataHelper.cs
- ClientFormsIdentity.cs
- glyphs.cs
- SafeBuffer.cs
- PanelDesigner.cs
- SelectingProviderEventArgs.cs
- CacheChildrenQuery.cs
- RegexMatch.cs
- UrlEncodedParameterWriter.cs
- DirectoryInfo.cs
- Metafile.cs
- CellParagraph.cs
- Section.cs
- WindowsBrush.cs
- DataColumnCollection.cs
- TextPointer.cs
- UDPClient.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- AuthenticationService.cs
- DirectoryNotFoundException.cs