Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartUtil.cs
- XmlPreloadedResolver.cs
- Drawing.cs
- AssertSection.cs
- SingleBodyParameterMessageFormatter.cs
- Event.cs
- CompilationLock.cs
- Token.cs
- DispatcherHooks.cs
- TextAnchor.cs
- MappingModelBuildProvider.cs
- wgx_render.cs
- FixedSOMPageConstructor.cs
- VariantWrapper.cs
- FolderBrowserDialog.cs
- ThreadPoolTaskScheduler.cs
- PropertyEntry.cs
- PolyQuadraticBezierSegment.cs
- DataGridViewCellEventArgs.cs
- MetadataArtifactLoaderFile.cs
- Semaphore.cs
- Encoder.cs
- SelectedDatesCollection.cs
- XamlHttpHandlerFactory.cs
- DataGridView.cs
- dtdvalidator.cs
- BamlLocalizableResourceKey.cs
- ModuleConfigurationInfo.cs
- XPathSingletonIterator.cs
- TableProvider.cs
- ReadOnlyNameValueCollection.cs
- DbMetaDataFactory.cs
- _DigestClient.cs
- GeometryConverter.cs
- WebPartsSection.cs
- TargetConverter.cs
- StateDesignerConnector.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HtmlControlPersistable.cs
- ThreadPoolTaskScheduler.cs
- ScrollPattern.cs
- TypeBuilderInstantiation.cs
- SqlTypesSchemaImporter.cs
- UserPreferenceChangingEventArgs.cs
- BrowserTree.cs
- OciLobLocator.cs
- WmiEventSink.cs
- FontNamesConverter.cs
- TextOptions.cs
- XmlDataDocument.cs
- CertificateElement.cs
- Parser.cs
- RuntimeHandles.cs
- KoreanLunisolarCalendar.cs
- QilValidationVisitor.cs
- RealProxy.cs
- SafeArrayRankMismatchException.cs
- ObjectHandle.cs
- SafeBitVector32.cs
- XmlDictionaryReader.cs
- DataGridViewColumnHeaderCell.cs
- MessagingActivityHelper.cs
- SignatureDescription.cs
- SymLanguageType.cs
- EdmRelationshipRoleAttribute.cs
- StringAnimationBase.cs
- LayoutTableCell.cs
- Span.cs
- CancellationHandler.cs
- XmlWhitespace.cs
- PlatformCulture.cs
- SelectionProcessor.cs
- ProcessInfo.cs
- SelectionEditingBehavior.cs
- SystemDiagnosticsSection.cs
- StringStorage.cs
- FormsAuthenticationCredentials.cs
- HtmlHistory.cs
- WmpBitmapEncoder.cs
- StylusButtonCollection.cs
- AnnotationMap.cs
- BitVector32.cs
- LockedBorderGlyph.cs
- FullTrustAssembly.cs
- ComboBoxRenderer.cs
- DaylightTime.cs
- ResourcesGenerator.cs
- Vector3DIndependentAnimationStorage.cs
- HashHelper.cs
- TempFiles.cs
- HostProtectionPermission.cs
- CacheModeValueSerializer.cs
- TemplateControlBuildProvider.cs
- TypeForwardedToAttribute.cs
- IApplicationTrustManager.cs
- EventLogPermission.cs
- XmlValidatingReaderImpl.cs
- Crypto.cs
- DataPagerField.cs
- ReliabilityContractAttribute.cs