Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / ThreadInterruptedException.cs / 1305376 / 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);
}
[System.Security.SecuritySafeCritical] // auto-generated
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);
}
[System.Security.SecuritySafeCritical] // auto-generated
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
- InvalidComObjectException.cs
- ObjectDisposedException.cs
- TerminatorSinks.cs
- RowUpdatedEventArgs.cs
- GlobalItem.cs
- MinimizableAttributeTypeConverter.cs
- RsaSecurityToken.cs
- ExpandCollapseIsCheckedConverter.cs
- SafeThreadHandle.cs
- NetworkAddressChange.cs
- Pair.cs
- CqlErrorHelper.cs
- COM2ExtendedUITypeEditor.cs
- TypeProvider.cs
- PointHitTestResult.cs
- RoutedCommand.cs
- InputQueueChannel.cs
- DesignerActionKeyboardBehavior.cs
- StringReader.cs
- Atom10FormatterFactory.cs
- NativeMethods.cs
- ColumnTypeConverter.cs
- RelationshipNavigation.cs
- PeerService.cs
- GenericEnumConverter.cs
- SecurityValidationBehavior.cs
- IsolatedStorage.cs
- ExtensionMethods.cs
- Marshal.cs
- WebSysDefaultValueAttribute.cs
- CompilerScope.cs
- Verify.cs
- mda.cs
- ParameterToken.cs
- BreakSafeBase.cs
- TreeView.cs
- ConstructorNeedsTagAttribute.cs
- ViewKeyConstraint.cs
- DocumentSchemaValidator.cs
- TemplateContainer.cs
- XmlSchemaInferenceException.cs
- CellPartitioner.cs
- PolicyException.cs
- StateWorkerRequest.cs
- ProcessHost.cs
- GridViewRow.cs
- PropertyChangedEventArgs.cs
- prompt.cs
- ConfigXmlElement.cs
- UrlPropertyAttribute.cs
- IndexedString.cs
- ToolStripMenuItem.cs
- _ProxyChain.cs
- CalendarKeyboardHelper.cs
- CreateUserWizardStep.cs
- WinFormsSpinner.cs
- TextDecoration.cs
- BasePropertyDescriptor.cs
- EntityProviderFactory.cs
- CodeMemberMethod.cs
- EastAsianLunisolarCalendar.cs
- ChannelReliableSession.cs
- CustomDictionarySources.cs
- TargetInvocationException.cs
- ColorTransform.cs
- EndpointIdentityExtension.cs
- MimeParameters.cs
- DataViewManagerListItemTypeDescriptor.cs
- BlobPersonalizationState.cs
- TextModifier.cs
- StyleCollectionEditor.cs
- Propagator.JoinPropagator.cs
- ResourceManager.cs
- EntityStoreSchemaFilterEntry.cs
- ConfigurationPropertyCollection.cs
- FileEnumerator.cs
- DnsCache.cs
- CaseInsensitiveOrdinalStringComparer.cs
- indexingfiltermarshaler.cs
- DbMetaDataFactory.cs
- ExtendedPropertyDescriptor.cs
- CodeIdentifier.cs
- Pair.cs
- IssuedSecurityTokenProvider.cs
- NumericPagerField.cs
- BevelBitmapEffect.cs
- TagElement.cs
- ThreadAbortException.cs
- Int32Rect.cs
- TextDpi.cs
- Timer.cs
- ViewStateModeByIdAttribute.cs
- ReferentialConstraint.cs
- Bits.cs
- ICollection.cs
- X509Extension.cs
- CapabilitiesState.cs
- PreProcessor.cs
- SyndicationSerializer.cs
- ParsedAttributeCollection.cs