Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ShapingWorkspace.cs
- DbProviderManifest.cs
- ArcSegment.cs
- DuplicateWaitObjectException.cs
- EntityParameter.cs
- TypedElement.cs
- UserPersonalizationStateInfo.cs
- ColorMap.cs
- X509RawDataKeyIdentifierClause.cs
- ContentType.cs
- XmlSchemaImport.cs
- DataServiceKeyAttribute.cs
- FontStyleConverter.cs
- WebConfigurationFileMap.cs
- LineVisual.cs
- AutoResetEvent.cs
- DocumentCollection.cs
- SapiAttributeParser.cs
- ResourceReferenceKeyNotFoundException.cs
- OutKeywords.cs
- WebPartAddingEventArgs.cs
- DependencyObjectProvider.cs
- Drawing.cs
- CultureTable.cs
- CodeNamespaceImport.cs
- ResXBuildProvider.cs
- FileUtil.cs
- DnsPermission.cs
- ListenerHandler.cs
- FixedDocumentSequencePaginator.cs
- SmiTypedGetterSetter.cs
- CollectionType.cs
- UpDownBase.cs
- MetadataProperty.cs
- oledbmetadatacollectionnames.cs
- DetailsViewDeletedEventArgs.cs
- StreamGeometry.cs
- PairComparer.cs
- TypeValidationEventArgs.cs
- ImmutableCollection.cs
- invalidudtexception.cs
- CharacterBufferReference.cs
- StaticExtension.cs
- __Filters.cs
- WorkflowExecutor.cs
- DataGridRow.cs
- AxisAngleRotation3D.cs
- GradientStop.cs
- RepeaterCommandEventArgs.cs
- PixelFormatConverter.cs
- CollectionChangeEventArgs.cs
- OleAutBinder.cs
- SqlGenericUtil.cs
- AnnouncementDispatcherAsyncResult.cs
- TemplateParser.cs
- HScrollProperties.cs
- WebColorConverter.cs
- OleDbDataAdapter.cs
- ShellProvider.cs
- ListViewItemEventArgs.cs
- TreePrinter.cs
- ToolTipService.cs
- TextContainer.cs
- RequestDescription.cs
- RequestQueue.cs
- XmlSerializationReader.cs
- CollectionView.cs
- TcpConnectionPoolSettingsElement.cs
- GroupStyle.cs
- ACL.cs
- FieldNameLookup.cs
- EFAssociationProvider.cs
- NativeRecognizer.cs
- PersonalizationStateInfoCollection.cs
- MenuItemStyleCollection.cs
- Color.cs
- TemplatedAdorner.cs
- Message.cs
- DataKey.cs
- DbExpressionVisitor_TResultType.cs
- ProgressBarHighlightConverter.cs
- DropAnimation.xaml.cs
- bidPrivateBase.cs
- ColorConvertedBitmapExtension.cs
- DataFieldCollectionEditor.cs
- NegotiateStream.cs
- GradientSpreadMethodValidation.cs
- LongTypeConverter.cs
- MergeFilterQuery.cs
- GenericUriParser.cs
- StoreItemCollection.cs
- InternalMappingException.cs
- QueryOpeningEnumerator.cs
- MailWebEventProvider.cs
- TransformConverter.cs
- SemaphoreFullException.cs
- Timer.cs
- XmlChildEnumerator.cs
- ObjectSecurityT.cs
- BamlLocalizer.cs