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
- DropShadowBitmapEffect.cs
- Overlapped.cs
- XmlSchemaIdentityConstraint.cs
- SmtpSection.cs
- ProcessHostMapPath.cs
- MSHTMLHostUtil.cs
- LoadGrammarCompletedEventArgs.cs
- ResourceExpressionBuilder.cs
- SiteMap.cs
- KeyMatchBuilder.cs
- NameGenerator.cs
- TransformConverter.cs
- DbDataSourceEnumerator.cs
- VisualTreeHelper.cs
- DataKey.cs
- autovalidator.cs
- IISUnsafeMethods.cs
- HandleRef.cs
- SmtpCommands.cs
- Compiler.cs
- Pens.cs
- TextEvent.cs
- MimeWriter.cs
- ManagementScope.cs
- CallContext.cs
- TemplateControlParser.cs
- sqlstateclientmanager.cs
- TripleDESCryptoServiceProvider.cs
- FrameworkReadOnlyPropertyMetadata.cs
- VectorAnimation.cs
- QueryableFilterUserControl.cs
- RelationshipDetailsRow.cs
- OutputCacheProfile.cs
- ColorPalette.cs
- ChangeBlockUndoRecord.cs
- CompilerError.cs
- Helper.cs
- FatalException.cs
- SoapExtensionTypeElementCollection.cs
- RootBrowserWindowProxy.cs
- OperandQuery.cs
- XamlFrame.cs
- PrimitiveRenderer.cs
- ActionNotSupportedException.cs
- CollaborationHelperFunctions.cs
- OperationInfo.cs
- SafeNativeMethodsCLR.cs
- ValidatedControlConverter.cs
- OdbcRowUpdatingEvent.cs
- WebPartConnectionsEventArgs.cs
- StyleSelector.cs
- DefaultPropertyAttribute.cs
- HtmlElement.cs
- XD.cs
- URLMembershipCondition.cs
- _UriTypeConverter.cs
- DependencyPropertyKind.cs
- ImageMapEventArgs.cs
- Binding.cs
- DbTransaction.cs
- MimeFormatExtensions.cs
- ColumnMapVisitor.cs
- CodeIterationStatement.cs
- StorageComplexPropertyMapping.cs
- GeneralTransform3D.cs
- CodeAccessPermission.cs
- DCSafeHandle.cs
- SQLStringStorage.cs
- CacheHelper.cs
- DataObjectEventArgs.cs
- CatalogPart.cs
- CharConverter.cs
- CodeFieldReferenceExpression.cs
- FontFamilyValueSerializer.cs
- UpdateCompiler.cs
- DataGridHeaderBorder.cs
- _NetworkingPerfCounters.cs
- TableAdapterManagerGenerator.cs
- PtsContext.cs
- ActivityTypeResolver.xaml.cs
- ISCIIEncoding.cs
- UnsafeNativeMethodsTablet.cs
- SecurityUtils.cs
- MenuScrollingVisibilityConverter.cs
- HwndSubclass.cs
- FunctionDescription.cs
- IChannel.cs
- Error.cs
- Hashtable.cs
- ArrayConverter.cs
- PointHitTestParameters.cs
- CompareInfo.cs
- SetIterators.cs
- TransactionManager.cs
- TrackingStringDictionary.cs
- ProxyHwnd.cs
- DataGridViewCellValidatingEventArgs.cs
- KerberosSecurityTokenAuthenticator.cs
- webeventbuffer.cs
- ComponentChangedEvent.cs