Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / ThreadStateException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- Control.cs
- RoutedPropertyChangedEventArgs.cs
- SmtpException.cs
- TextDecorationCollection.cs
- ConversionContext.cs
- GZipObjectSerializer.cs
- ToolStripPanelCell.cs
- AutomationTextAttribute.cs
- ToggleProviderWrapper.cs
- HttpCacheVary.cs
- DocumentationServerProtocol.cs
- FileUpload.cs
- ExternalCalls.cs
- SmtpException.cs
- LineBreakRecord.cs
- RetriableClipboard.cs
- HttpModuleActionCollection.cs
- SqlCacheDependencySection.cs
- RMEnrollmentPage3.cs
- ConnectionString.cs
- FieldDescriptor.cs
- DbConnectionClosed.cs
- AddressHeaderCollection.cs
- ParserStack.cs
- TableItemStyle.cs
- DropSource.cs
- HandlerWithFactory.cs
- SeparatorAutomationPeer.cs
- ModifyActivitiesPropertyDescriptor.cs
- SafeRightsManagementHandle.cs
- CreateUserWizardStep.cs
- BooleanFacetDescriptionElement.cs
- BooleanConverter.cs
- SmtpMail.cs
- InnerItemCollectionView.cs
- EventHandlerList.cs
- Transform.cs
- MenuTracker.cs
- DataRowComparer.cs
- BaseParaClient.cs
- MessageBuilder.cs
- WinCategoryAttribute.cs
- HttpChannelHelper.cs
- CompositeControl.cs
- Socket.cs
- WebPartDisplayModeEventArgs.cs
- WindowsTitleBar.cs
- BrowserCapabilitiesFactory.cs
- GridPatternIdentifiers.cs
- ThemeableAttribute.cs
- CompleteWizardStep.cs
- SourceFileBuildProvider.cs
- RNGCryptoServiceProvider.cs
- ImageKeyConverter.cs
- ScriptingJsonSerializationSection.cs
- StringValidator.cs
- XpsFilter.cs
- ProxyDataContractResolver.cs
- Span.cs
- EmbossBitmapEffect.cs
- DecoderBestFitFallback.cs
- COM2ExtendedUITypeEditor.cs
- BufferedGraphicsManager.cs
- DragDeltaEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- RemotingException.cs
- SecurityManager.cs
- Size.cs
- Effect.cs
- OracleConnectionString.cs
- NonNullItemCollection.cs
- CustomErrorsSection.cs
- AutomationPatternInfo.cs
- HTMLTextWriter.cs
- TreeWalker.cs
- TreeViewImageGenerator.cs
- PublishLicense.cs
- HttpBrowserCapabilitiesWrapper.cs
- ActivitySurrogateSelector.cs
- UnauthorizedWebPart.cs
- TraceLevelHelper.cs
- KeyMatchBuilder.cs
- TagMapCollection.cs
- TypedTableGenerator.cs
- CompressEmulationStream.cs
- GregorianCalendarHelper.cs
- IIS7WorkerRequest.cs
- xdrvalidator.cs
- CopyAttributesAction.cs
- TextParentUndoUnit.cs
- XmlSchemaObjectTable.cs
- GuidelineSet.cs
- PolygonHotSpot.cs
- GridViewRowCollection.cs
- CodeExporter.cs
- ColorBuilder.cs
- LowerCaseStringConverter.cs
- TargetInvocationException.cs
- SyndicationSerializer.cs
- DataGridViewCellStateChangedEventArgs.cs