Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- cookiecollection.cs
- XamlClipboardData.cs
- SqlInternalConnectionSmi.cs
- cookieexception.cs
- SystemIPInterfaceProperties.cs
- ColorMatrix.cs
- BigInt.cs
- Button.cs
- SimpleApplicationHost.cs
- DebugView.cs
- LOSFormatter.cs
- FileDialogPermission.cs
- SqlCacheDependency.cs
- SystemIPv4InterfaceProperties.cs
- DataColumnCollection.cs
- UserPersonalizationStateInfo.cs
- TargetConverter.cs
- SynchronizedInputHelper.cs
- TreeWalker.cs
- ColorTranslator.cs
- DropDownList.cs
- KeyValuePair.cs
- XmlDataLoader.cs
- InputManager.cs
- BitmapScalingModeValidation.cs
- ViewPort3D.cs
- UserValidatedEventArgs.cs
- XmlHierarchyData.cs
- ConfigurationLockCollection.cs
- ScrollChrome.cs
- RbTree.cs
- GroupStyle.cs
- ExpandableObjectConverter.cs
- ContentDisposition.cs
- DataMemberConverter.cs
- ConfigurationSettings.cs
- ReadOnlyMetadataCollection.cs
- WorkflowWebService.cs
- parserscommon.cs
- ThreadAbortException.cs
- AuthorizationRule.cs
- WebBrowsableAttribute.cs
- VectorAnimationBase.cs
- IOThreadScheduler.cs
- PageRequestManager.cs
- PenLineCapValidation.cs
- __FastResourceComparer.cs
- MetadataItemEmitter.cs
- TypeElement.cs
- TextRunProperties.cs
- ContentPresenter.cs
- CombinedGeometry.cs
- RegexReplacement.cs
- Itemizer.cs
- ExceptionHelpers.cs
- GlyphsSerializer.cs
- sqlpipe.cs
- Transform3DCollection.cs
- DefaultValueConverter.cs
- DtrList.cs
- DateTime.cs
- SystemFonts.cs
- AdornerPresentationContext.cs
- ProxyHelper.cs
- Compilation.cs
- ModuleConfigurationInfo.cs
- UrlMappingsSection.cs
- SafeEventHandle.cs
- FontConverter.cs
- FontUnitConverter.cs
- EmptyElement.cs
- ZipIOLocalFileDataDescriptor.cs
- InternalConfigSettingsFactory.cs
- VirtualDirectoryMapping.cs
- SQLByte.cs
- SelectedDatesCollection.cs
- DependencyObjectType.cs
- TextChangedEventArgs.cs
- StringAttributeCollection.cs
- ContextMenuStrip.cs
- LinearGradientBrush.cs
- Simplifier.cs
- ListViewGroupConverter.cs
- ClientSettingsStore.cs
- WindowsTitleBar.cs
- RequestStatusBarUpdateEventArgs.cs
- AnchoredBlock.cs
- CompositeActivityTypeDescriptorProvider.cs
- QuaternionValueSerializer.cs
- RoleBoolean.cs
- CursorConverter.cs
- LinqDataSourceContextEventArgs.cs
- GenericAuthenticationEventArgs.cs
- DateTimeConstantAttribute.cs
- PeerName.cs
- TypeSource.cs
- WebSysDisplayNameAttribute.cs
- RequestChannel.cs
- DbMetaDataCollectionNames.cs
- Preprocessor.cs