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
- StringValueSerializer.cs
- ColumnReorderedEventArgs.cs
- CheckBoxAutomationPeer.cs
- HwndTarget.cs
- InvokeProviderWrapper.cs
- OperandQuery.cs
- EntityDataSourceView.cs
- ObjectPropertyMapping.cs
- VolatileEnlistmentState.cs
- Transform.cs
- DataRow.cs
- ListMarkerSourceInfo.cs
- DateTimeConstantAttribute.cs
- ClassImporter.cs
- PointAnimationBase.cs
- CircleHotSpot.cs
- XsltSettings.cs
- UdpUtility.cs
- TreeViewAutomationPeer.cs
- StorageMappingFragment.cs
- VirtualDirectoryMappingCollection.cs
- DbCommandTree.cs
- WebServiceParameterData.cs
- ResourceProviderFactory.cs
- TemplateAction.cs
- ConfigurationLocation.cs
- HandlerFactoryCache.cs
- UpDownEvent.cs
- SqlFacetAttribute.cs
- InputLanguageSource.cs
- WindowsStartMenu.cs
- GeometryHitTestParameters.cs
- HtmlFormAdapter.cs
- StorageAssociationTypeMapping.cs
- DataBindingCollection.cs
- RotateTransform3D.cs
- ImageAutomationPeer.cs
- handlecollector.cs
- InternalResources.cs
- MouseOverProperty.cs
- EnumCodeDomSerializer.cs
- TextCollapsingProperties.cs
- BindingSource.cs
- DoubleCollectionValueSerializer.cs
- EnumValidator.cs
- XmlWriterTraceListener.cs
- FixUpCollection.cs
- tooltip.cs
- PropertyMap.cs
- BamlStream.cs
- SQLMoney.cs
- ValueUtilsSmi.cs
- Grid.cs
- AxisAngleRotation3D.cs
- DataGridViewDataConnection.cs
- DbException.cs
- LocationSectionRecord.cs
- XPathAncestorQuery.cs
- AnonymousIdentificationModule.cs
- SQLSingle.cs
- DependencyPropertyDescriptor.cs
- Transform3DGroup.cs
- CommandManager.cs
- TempFiles.cs
- RowVisual.cs
- WmpBitmapDecoder.cs
- TraceListener.cs
- RankException.cs
- BinHexEncoder.cs
- ConsoleKeyInfo.cs
- InvokePattern.cs
- EventProxy.cs
- VerificationException.cs
- PackageDigitalSignature.cs
- SamlAuthenticationClaimResource.cs
- DesignerVerb.cs
- NativeMethodsOther.cs
- ArrangedElement.cs
- SafeHandles.cs
- PersonalizableAttribute.cs
- Evidence.cs
- CompModSwitches.cs
- Rect3D.cs
- ResourceManagerWrapper.cs
- Site.cs
- Stackframe.cs
- MaskedTextBoxTextEditorDropDown.cs
- ErrorWebPart.cs
- PartialTrustVisibleAssemblyCollection.cs
- Win32KeyboardDevice.cs
- RolePrincipal.cs
- AuthorizationSection.cs
- OledbConnectionStringbuilder.cs
- ScrollChrome.cs
- DbUpdateCommandTree.cs
- FontUnit.cs
- DataTransferEventArgs.cs
- SecureConversationVersion.cs
- Solver.cs
- XmlNullResolver.cs