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 / ThreadInterruptedException.cs / 1 / ThreadInterruptedException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: ThreadInterruptedException
**
**
** Purpose: An exception class to indicate that the thread was interrupted
** from a waiting state.
**
**
=============================================================================*/
namespace System.Threading {
using System.Threading;
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class ThreadInterruptedException : SystemException {
public ThreadInterruptedException()
: base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadInterrupted)) {
SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
}
public ThreadInterruptedException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
}
public ThreadInterruptedException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
}
protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: ThreadInterruptedException
**
**
** Purpose: An exception class to indicate that the thread was interrupted
** from a waiting state.
**
**
=============================================================================*/
namespace System.Threading {
using System.Threading;
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class ThreadInterruptedException : SystemException {
public ThreadInterruptedException()
: base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadInterrupted)) {
SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
}
public ThreadInterruptedException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
}
public ThreadInterruptedException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_THREADINTERRUPTED);
}
protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// 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
- MissingMemberException.cs
- ObjectResult.cs
- Cursor.cs
- PropertyGridEditorPart.cs
- DiscoveryExceptionDictionary.cs
- ControlEvent.cs
- SimpleTypeResolver.cs
- MetaModel.cs
- SqlBulkCopyColumnMapping.cs
- StateRuntime.cs
- AutoResetEvent.cs
- GenericIdentity.cs
- ActionMismatchAddressingException.cs
- ProjectionPruner.cs
- DataChangedEventManager.cs
- SqlNode.cs
- InfoCardCryptoHelper.cs
- XamlFrame.cs
- CellParaClient.cs
- AuthenticationService.cs
- LinkUtilities.cs
- OutOfMemoryException.cs
- SQLResource.cs
- SerializationEventsCache.cs
- ScrollContentPresenter.cs
- Identity.cs
- WsatTransactionHeader.cs
- TcpClientSocketManager.cs
- _SingleItemRequestCache.cs
- PerformanceCountersElement.cs
- CodeSubDirectoriesCollection.cs
- Comparer.cs
- DayRenderEvent.cs
- InplaceBitmapMetadataWriter.cs
- FontClient.cs
- PrimitiveCodeDomSerializer.cs
- AsyncCompletedEventArgs.cs
- Win32Exception.cs
- TileBrush.cs
- DeclaredTypeValidator.cs
- StringInfo.cs
- MembershipUser.cs
- VisualStyleRenderer.cs
- Version.cs
- RegexTree.cs
- ValueTable.cs
- RtfToXamlReader.cs
- CollectionTypeElement.cs
- GeneratedCodeAttribute.cs
- XmlUnspecifiedAttribute.cs
- TextTreeRootTextBlock.cs
- ArraySet.cs
- KnowledgeBase.cs
- RevocationPoint.cs
- SqlRowUpdatedEvent.cs
- ListViewUpdateEventArgs.cs
- AsyncPostBackTrigger.cs
- Currency.cs
- MetadataArtifactLoaderResource.cs
- SqlTypesSchemaImporter.cs
- SystemFonts.cs
- SetIterators.cs
- NullableBoolConverter.cs
- HyperlinkAutomationPeer.cs
- GridViewActionList.cs
- ImmComposition.cs
- CodeTypeConstructor.cs
- EpmSyndicationContentDeSerializer.cs
- ImageDrawing.cs
- ContextQuery.cs
- SiteMapNodeItem.cs
- WebFormsRootDesigner.cs
- PerCallInstanceContextProvider.cs
- PathSegmentCollection.cs
- ControlCollection.cs
- XmlAggregates.cs
- PrintDialog.cs
- CodeAttributeDeclaration.cs
- PartBasedPackageProperties.cs
- EntityTypeBase.cs
- HierarchicalDataTemplate.cs
- IOException.cs
- GridViewDeletedEventArgs.cs
- MulticastDelegate.cs
- OptimisticConcurrencyException.cs
- BuildProviderAppliesToAttribute.cs
- TableRow.cs
- EllipticalNodeOperations.cs
- TextOptions.cs
- PinProtectionHelper.cs
- EventProviderWriter.cs
- SmtpException.cs
- SoapAttributeAttribute.cs
- FamilyMap.cs
- NgenServicingAttributes.cs
- DataBindingCollection.cs
- RequestNavigateEventArgs.cs
- CompilerScopeManager.cs
- GiveFeedbackEventArgs.cs
- PerformanceCounterPermission.cs