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
- RuntimeCompatibilityAttribute.cs
- SiteIdentityPermission.cs
- PackageProperties.cs
- ListViewAutomationPeer.cs
- GZipDecoder.cs
- VBIdentifierName.cs
- UserControl.cs
- TextEditorSpelling.cs
- AxHost.cs
- SignedXml.cs
- DSASignatureDeformatter.cs
- ProjectionCamera.cs
- UidPropertyAttribute.cs
- FragmentQuery.cs
- TextBox.cs
- ObjectStateFormatter.cs
- TemplatePagerField.cs
- CreationContext.cs
- EmbeddedMailObjectsCollection.cs
- RotateTransform.cs
- Grid.cs
- ResourceDisplayNameAttribute.cs
- TextPointerBase.cs
- DnsEndPoint.cs
- MissingSatelliteAssemblyException.cs
- ArrayHelper.cs
- MulticastNotSupportedException.cs
- DesignUtil.cs
- ImmComposition.cs
- TraceFilter.cs
- BuilderInfo.cs
- WebPartMovingEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- EncoderReplacementFallback.cs
- ChineseLunisolarCalendar.cs
- UpdateExpressionVisitor.cs
- RenderingEventArgs.cs
- HttpWebRequest.cs
- TreeViewTemplateSelector.cs
- PropertyConverter.cs
- ErrorFormatter.cs
- RsaKeyIdentifierClause.cs
- HttpProfileBase.cs
- DataException.cs
- DataObject.cs
- HyperLinkStyle.cs
- MailHeaderInfo.cs
- CacheSection.cs
- DataView.cs
- SqlTransaction.cs
- PerformanceCounterTraceRecord.cs
- CustomTypeDescriptor.cs
- ExtensionSimplifierMarkupObject.cs
- ProxyWebPart.cs
- HttpServerChannel.cs
- HwndHost.cs
- Rule.cs
- ButtonDesigner.cs
- BamlWriter.cs
- ConnectionStringSettingsCollection.cs
- PieceNameHelper.cs
- SqlCommandSet.cs
- SpeechRecognitionEngine.cs
- SharedRuntimeState.cs
- MailSettingsSection.cs
- RetrieveVirtualItemEventArgs.cs
- ExtractCollection.cs
- EntityExpressionVisitor.cs
- StandardOleMarshalObject.cs
- Authorization.cs
- SoapSchemaExporter.cs
- COM2ComponentEditor.cs
- Journal.cs
- ToolStripPanelSelectionBehavior.cs
- BitmapFrameEncode.cs
- Gdiplus.cs
- FontFaceLayoutInfo.cs
- CompositionDesigner.cs
- XamlVector3DCollectionSerializer.cs
- TemplatePropertyEntry.cs
- FontNamesConverter.cs
- SecurityState.cs
- XPathBinder.cs
- CorrelationQueryBehavior.cs
- WindowPattern.cs
- SelectionManager.cs
- DesignerActionItemCollection.cs
- ToolStripManager.cs
- MatrixTransform3D.cs
- DbConnectionInternal.cs
- WpfXamlLoader.cs
- MD5CryptoServiceProvider.cs
- _AcceptOverlappedAsyncResult.cs
- OracleMonthSpan.cs
- FormConverter.cs
- ResourcePermissionBaseEntry.cs
- TextMetrics.cs
- X500Name.cs
- RuleSettingsCollection.cs
- GenericAuthenticationEventArgs.cs