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
- TableItemStyle.cs
- ServerType.cs
- AttributeCallbackBuilder.cs
- TcpProcessProtocolHandler.cs
- ProfileService.cs
- XmlNamespaceMappingCollection.cs
- ValueType.cs
- Properties.cs
- CustomBindingElementCollection.cs
- AxHost.cs
- UIPermission.cs
- PropertyGridView.cs
- ComboBox.cs
- InternalTransaction.cs
- IdentityNotMappedException.cs
- PolyQuadraticBezierSegment.cs
- InternalResources.cs
- GeneralTransform3D.cs
- Matrix3DStack.cs
- WindowsSysHeader.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DropTarget.cs
- DataGridViewBindingCompleteEventArgs.cs
- Label.cs
- XmlILOptimizerVisitor.cs
- TrackingServices.cs
- WindowsBrush.cs
- SetUserLanguageRequest.cs
- StylusPointPropertyUnit.cs
- DiagnosticsElement.cs
- CharacterMetrics.cs
- OdbcFactory.cs
- XmlDeclaration.cs
- InstallHelper.cs
- FileDialog_Vista_Interop.cs
- DateTimeOffset.cs
- StyleXamlParser.cs
- ConfigViewGenerator.cs
- HtmlUtf8RawTextWriter.cs
- HMACRIPEMD160.cs
- ReflectionServiceProvider.cs
- MetadataArtifactLoaderResource.cs
- DataGridItem.cs
- PropertiesTab.cs
- XhtmlBasicPhoneCallAdapter.cs
- XmlSubtreeReader.cs
- StandardBindingElementCollection.cs
- RsaSecurityToken.cs
- SpellerHighlightLayer.cs
- XmlWriterSettings.cs
- ViewUtilities.cs
- XmlBinaryWriterSession.cs
- Int16AnimationBase.cs
- KeyInfo.cs
- Region.cs
- RuntimeEnvironment.cs
- SrgsElement.cs
- SpotLight.cs
- TextHidden.cs
- RelationshipFixer.cs
- Button.cs
- DefaultMemberAttribute.cs
- ProxyGenerationError.cs
- Keyboard.cs
- ButtonBase.cs
- EditingMode.cs
- MethodToken.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DispatcherEventArgs.cs
- CodeSpit.cs
- XPathScanner.cs
- ListenerElementsCollection.cs
- BlurEffect.cs
- Rule.cs
- Adorner.cs
- FormatSettings.cs
- DataGridViewTopLeftHeaderCell.cs
- DesignerOptionService.cs
- GenerateScriptTypeAttribute.cs
- CredentialSelector.cs
- SqlWebEventProvider.cs
- UniformGrid.cs
- Route.cs
- BamlLocalizableResource.cs
- EventRecordWrittenEventArgs.cs
- RectConverter.cs
- BindingCollection.cs
- ButtonBase.cs
- IDReferencePropertyAttribute.cs
- CommandArguments.cs
- KeyEvent.cs
- XXXOnTypeBuilderInstantiation.cs
- DisplayMemberTemplateSelector.cs
- EncoderParameters.cs
- XmlReflectionMember.cs
- ProvidePropertyAttribute.cs
- MultipartIdentifier.cs
- QueryContinueDragEvent.cs
- TranslateTransform.cs
- WithParamAction.cs