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
- ScrollBar.cs
- AssemblyBuilder.cs
- OleDbWrapper.cs
- DynamicControlParameter.cs
- WhiteSpaceTrimStringConverter.cs
- LinkTarget.cs
- WebPartZoneCollection.cs
- SqlWebEventProvider.cs
- EntityDataSourceViewSchema.cs
- ToolTipAutomationPeer.cs
- RegistrySecurity.cs
- DesignerSerializationVisibilityAttribute.cs
- ExecutionEngineException.cs
- StyleTypedPropertyAttribute.cs
- XamlUtilities.cs
- ObjectNavigationPropertyMapping.cs
- Boolean.cs
- ExpressionBinding.cs
- PrinterSettings.cs
- ArgumentException.cs
- WebMessageEncoderFactory.cs
- WebPartCatalogCloseVerb.cs
- TimeSpanOrInfiniteConverter.cs
- indexingfiltermarshaler.cs
- DefaultAssemblyResolver.cs
- SQLGuidStorage.cs
- FileChangesMonitor.cs
- XmlSchemaSimpleTypeList.cs
- Int32RectValueSerializer.cs
- ToolStripSeparator.cs
- ValueSerializerAttribute.cs
- HTTPAPI_VERSION.cs
- DataRecordInternal.cs
- ExtensionQuery.cs
- SocketElement.cs
- NameSpaceExtractor.cs
- XmlBinaryReader.cs
- ConnectionStringSettingsCollection.cs
- Token.cs
- EncryptedPackage.cs
- CodeAccessPermission.cs
- SqlRecordBuffer.cs
- TogglePatternIdentifiers.cs
- ObjectMaterializedEventArgs.cs
- CallbackTimeoutsBehavior.cs
- ConfigurationSectionHelper.cs
- HttpContextBase.cs
- Error.cs
- ListControl.cs
- Receive.cs
- StylusButtonEventArgs.cs
- ConstraintStruct.cs
- DataGridViewColumnEventArgs.cs
- FormCollection.cs
- DataGridViewCellStyleConverter.cs
- AccessedThroughPropertyAttribute.cs
- AssemblyName.cs
- BaseTemplatedMobileComponentEditor.cs
- XmlSchemas.cs
- Thumb.cs
- Inflater.cs
- NameValuePermission.cs
- DataGridCaption.cs
- DbConnectionHelper.cs
- SelectionItemProviderWrapper.cs
- HWStack.cs
- ControlCollection.cs
- EncodingInfo.cs
- LongValidatorAttribute.cs
- WebPartVerb.cs
- ShadowGlyph.cs
- XmlQueryType.cs
- InsufficientMemoryException.cs
- Stacktrace.cs
- ScriptResourceInfo.cs
- CheckableControlBaseAdapter.cs
- PathStreamGeometryContext.cs
- DataGridViewCellLinkedList.cs
- User.cs
- DBParameter.cs
- SelectQueryOperator.cs
- ParentQuery.cs
- SimpleRecyclingCache.cs
- ExpandCollapsePattern.cs
- HwndKeyboardInputProvider.cs
- ProgressBarAutomationPeer.cs
- ToolStripManager.cs
- DependencyProperty.cs
- SystemResourceHost.cs
- TextCharacters.cs
- InkPresenter.cs
- BCLDebug.cs
- ByteStorage.cs
- MsmqOutputSessionChannel.cs
- SiteMap.cs
- AsyncPostBackErrorEventArgs.cs
- TreeViewImageKeyConverter.cs
- EnvelopedSignatureTransform.cs
- HttpResponseHeader.cs
- HttpRequestCacheValidator.cs