Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Threading / ThreadStateException.cs / 1 / ThreadStateException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: ThreadStateException
**
**
** Purpose: An exception class to indicate that the Thread class is in an
** invalid state for the method.
**
**
=============================================================================*/
namespace System.Threading {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class ThreadStateException : SystemException {
public ThreadStateException()
: base(Environment.GetResourceString("Arg_ThreadStateException")) {
SetErrorCode(__HResults.COR_E_THREADSTATE);
}
public ThreadStateException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_THREADSTATE);
}
public ThreadStateException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_THREADSTATE);
}
protected ThreadStateException(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: ThreadStateException
**
**
** Purpose: An exception class to indicate that the Thread class is in an
** invalid state for the method.
**
**
=============================================================================*/
namespace System.Threading {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class ThreadStateException : SystemException {
public ThreadStateException()
: base(Environment.GetResourceString("Arg_ThreadStateException")) {
SetErrorCode(__HResults.COR_E_THREADSTATE);
}
public ThreadStateException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_THREADSTATE);
}
public ThreadStateException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_THREADSTATE);
}
protected ThreadStateException(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
- WindowsPen.cs
- ClientConfigurationHost.cs
- TypeDescriptor.cs
- DbConnectionOptions.cs
- PenLineJoinValidation.cs
- SharedUtils.cs
- WmlPanelAdapter.cs
- ISAPIRuntime.cs
- HitTestParameters3D.cs
- WizardPanel.cs
- ObjectMemberMapping.cs
- BindingExpressionUncommonField.cs
- EmptyStringExpandableObjectConverter.cs
- TextCollapsingProperties.cs
- GridViewRowCollection.cs
- SqlClientMetaDataCollectionNames.cs
- MouseWheelEventArgs.cs
- WorkflowEnvironment.cs
- MemberHolder.cs
- JsonReaderWriterFactory.cs
- DiscardableAttribute.cs
- RtfNavigator.cs
- CapabilitiesSection.cs
- Random.cs
- ActivityTrace.cs
- BooleanKeyFrameCollection.cs
- MessageQueue.cs
- ColorTransform.cs
- UIElementAutomationPeer.cs
- HttpApplication.cs
- DataGridColumnHeader.cs
- XmlSchemaValidationException.cs
- Visual3D.cs
- BasicCellRelation.cs
- DBConnection.cs
- Fonts.cs
- BindStream.cs
- GlyphingCache.cs
- StorageEndPropertyMapping.cs
- Label.cs
- GlyphingCache.cs
- TextProviderWrapper.cs
- SecUtil.cs
- ListCardsInFileRequest.cs
- TableItemPatternIdentifiers.cs
- SchemaElement.cs
- MasterPageCodeDomTreeGenerator.cs
- RuntimeHandles.cs
- XmlDocumentSerializer.cs
- UIElement3DAutomationPeer.cs
- DodSequenceMerge.cs
- ContractMapping.cs
- KeySplineConverter.cs
- TextServicesCompartmentContext.cs
- BinaryParser.cs
- AuthStoreRoleProvider.cs
- AttachmentCollection.cs
- TypefaceCollection.cs
- HeaderedContentControl.cs
- ArrayTypeMismatchException.cs
- Directory.cs
- UriExt.cs
- CollectionChangedEventManager.cs
- XamlToRtfParser.cs
- SortFieldComparer.cs
- TextEditorCharacters.cs
- EntityModelSchemaGenerator.cs
- Content.cs
- AnimationStorage.cs
- HttpRuntimeSection.cs
- MbpInfo.cs
- FileUpload.cs
- SqlUserDefinedAggregateAttribute.cs
- KeyedQueue.cs
- PageThemeCodeDomTreeGenerator.cs
- MsmqHostedTransportManager.cs
- XmlWrappingReader.cs
- DynamicHyperLink.cs
- MdiWindowListStrip.cs
- DataGridViewMethods.cs
- HandleCollector.cs
- SortExpressionBuilder.cs
- CodeFieldReferenceExpression.cs
- DbConnectionPoolCounters.cs
- EntitySetBaseCollection.cs
- ListBox.cs
- AppSettingsExpressionEditor.cs
- ToolStripOverflowButton.cs
- OutputCacheSettings.cs
- ExpandCollapsePattern.cs
- securitymgrsite.cs
- PersonalizationProviderCollection.cs
- Win32KeyboardDevice.cs
- ListView.cs
- DataGridViewTextBoxEditingControl.cs
- HotSpotCollectionEditor.cs
- SystemFonts.cs
- Collection.cs
- DynamicUpdateCommand.cs
- PageThemeBuildProvider.cs