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
- lengthconverter.cs
- BindingRestrictions.cs
- ImageListImage.cs
- WorkflowQueuingService.cs
- EdmScalarPropertyAttribute.cs
- ByteStorage.cs
- DataGridViewHeaderCell.cs
- ConsoleCancelEventArgs.cs
- Stroke2.cs
- ReadWriteSpinLock.cs
- LayoutEngine.cs
- GetWinFXPath.cs
- DesignDataSource.cs
- Pens.cs
- CloudCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XmlSchemaGroupRef.cs
- ParallelTimeline.cs
- WorkflowItemsPresenter.cs
- Sentence.cs
- ListViewItem.cs
- ImpersonationContext.cs
- Typography.cs
- GroupQuery.cs
- StrongNameUtility.cs
- Rule.cs
- InputMethod.cs
- TraceSection.cs
- DataGridState.cs
- BinaryObjectInfo.cs
- XmlChildEnumerator.cs
- SecurityException.cs
- PopupRoot.cs
- FontWeights.cs
- Cursors.cs
- ValueHandle.cs
- RemoteHelper.cs
- ErrorHandler.cs
- NativeMethodsOther.cs
- SimpleTypesSurrogate.cs
- CallSiteBinder.cs
- ControlIdConverter.cs
- TreeViewHitTestInfo.cs
- ResourcesGenerator.cs
- BasicCommandTreeVisitor.cs
- typedescriptorpermissionattribute.cs
- SafeThreadHandle.cs
- HttpResponse.cs
- DataGridColumn.cs
- UdpSocketReceiveManager.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ServiceHandle.cs
- HighContrastHelper.cs
- ObjectTypeMapping.cs
- EntityCommandDefinition.cs
- RootBrowserWindowAutomationPeer.cs
- ToolboxDataAttribute.cs
- RangeValuePattern.cs
- KeyPressEvent.cs
- Tag.cs
- SoapReflector.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- TreeNodeStyleCollection.cs
- ViewKeyConstraint.cs
- ContainerTracking.cs
- MetadataWorkspace.cs
- ExternalCalls.cs
- Win32.cs
- DataServiceRequestArgs.cs
- IgnoreSection.cs
- WSDualHttpBinding.cs
- App.cs
- CheckBoxList.cs
- CustomError.cs
- ResizeGrip.cs
- FixedSOMPageConstructor.cs
- ComplexBindingPropertiesAttribute.cs
- RequiredAttributeAttribute.cs
- CodeRegionDirective.cs
- WasHttpModulesInstallComponent.cs
- XmlBindingWorker.cs
- SafeCryptHandles.cs
- SharingService.cs
- RelationshipNavigation.cs
- ArraySet.cs
- SmiTypedGetterSetter.cs
- StandardCommands.cs
- TypeSemantics.cs
- TransformGroup.cs
- MimePart.cs
- ScriptControlDescriptor.cs
- MessageFormatterConverter.cs
- WindowsScrollBar.cs
- ImageAnimator.cs
- WebPartTransformerCollection.cs
- LinkDesigner.cs
- XmlSchemaComplexContentExtension.cs
- RepeaterItem.cs
- XmlWriter.cs
- FuncCompletionCallbackWrapper.cs