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
- MetaChildrenColumn.cs
- Mappings.cs
- WebColorConverter.cs
- GridItemProviderWrapper.cs
- IriParsingElement.cs
- PagerSettings.cs
- SystemNetHelpers.cs
- DataChangedEventManager.cs
- InteropBitmapSource.cs
- ClientSponsor.cs
- MulticastDelegate.cs
- QueryContinueDragEvent.cs
- TrackingRecord.cs
- namescope.cs
- XmlEntity.cs
- DataGridViewRowConverter.cs
- MenuItem.cs
- TabletDevice.cs
- NetSectionGroup.cs
- RadioButtonList.cs
- FunctionImportElement.cs
- RepeatBehaviorConverter.cs
- PropertySegmentSerializationProvider.cs
- EntitySqlQueryBuilder.cs
- DBSchemaRow.cs
- StrokeNodeOperations2.cs
- uribuilder.cs
- CqlLexerHelpers.cs
- ProcessHostMapPath.cs
- GetChildSubtree.cs
- DataBoundControlAdapter.cs
- XmlSchemaIdentityConstraint.cs
- XmlNodeList.cs
- TextSpan.cs
- ClassHandlersStore.cs
- ReturnType.cs
- ProxyOperationRuntime.cs
- OperationParameterInfoCollection.cs
- RelOps.cs
- OneWayBindingElement.cs
- TypeCodeDomSerializer.cs
- CmsInterop.cs
- StickyNoteAnnotations.cs
- BinaryQueryOperator.cs
- TaskFormBase.cs
- FactoryRecord.cs
- SystemTcpConnection.cs
- ParserContext.cs
- TableLayout.cs
- XmlSchemaComplexContent.cs
- CLRBindingWorker.cs
- _LoggingObject.cs
- InlineUIContainer.cs
- ToolboxItemAttribute.cs
- ConstructorBuilder.cs
- SystemWebCachingSectionGroup.cs
- MultiDataTrigger.cs
- Grant.cs
- Inline.cs
- OrderByBuilder.cs
- RepeaterItemEventArgs.cs
- SecurityRequiresReviewAttribute.cs
- AssertUtility.cs
- DataListCommandEventArgs.cs
- AxisAngleRotation3D.cs
- StringStorage.cs
- ServerValidateEventArgs.cs
- UInt64.cs
- Route.cs
- Deflater.cs
- OdbcConnectionFactory.cs
- AddInDeploymentState.cs
- PrintPageEvent.cs
- CodeNamespace.cs
- TypeExtension.cs
- TraceListeners.cs
- followingsibling.cs
- TextBoxDesigner.cs
- WorkflowNamespace.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BufferAllocator.cs
- AnnotationHighlightLayer.cs
- RawStylusActions.cs
- PeerInputChannelListener.cs
- ToolStripRenderEventArgs.cs
- SafeCryptHandles.cs
- MimeTypeMapper.cs
- TextDocumentView.cs
- RemotingException.cs
- NonClientArea.cs
- TraceFilter.cs
- RecognitionResult.cs
- AuthenticationModuleElement.cs
- FixUp.cs
- XmlNullResolver.cs
- ListBoxChrome.cs
- CreatingCookieEventArgs.cs
- Vector3D.cs
- HtmlDocument.cs
- MimeMapping.cs