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
- QfeChecker.cs
- DataServiceStreamResponse.cs
- WebPartConnectionsCloseVerb.cs
- StringUtil.cs
- NavigateUrlConverter.cs
- ToolStripItemDesigner.cs
- HtmlInputReset.cs
- DataGridViewCellFormattingEventArgs.cs
- AsyncResult.cs
- SelectionRange.cs
- EdmError.cs
- RoleExceptions.cs
- XmlBinaryReader.cs
- CustomLineCap.cs
- LinearKeyFrames.cs
- _CommandStream.cs
- keycontainerpermission.cs
- CodeAttachEventStatement.cs
- ComponentDispatcherThread.cs
- RenderCapability.cs
- PropertyInfoSet.cs
- ListControl.cs
- XmlIlTypeHelper.cs
- RedirectionProxy.cs
- XmlHierarchicalEnumerable.cs
- CodeAttributeDeclaration.cs
- CngAlgorithmGroup.cs
- StreamUpdate.cs
- XmlSchemaImport.cs
- TextCompositionEventArgs.cs
- GlyphRunDrawing.cs
- FacetDescription.cs
- PropertyManager.cs
- SQLInt16Storage.cs
- RawStylusActions.cs
- UrlMappingCollection.cs
- RegexWriter.cs
- RefExpr.cs
- AmbientProperties.cs
- XmlWhitespace.cs
- ObjectStateManagerMetadata.cs
- ParagraphVisual.cs
- XmlSchemaElement.cs
- ContainerFilterService.cs
- XmlReturnReader.cs
- MediaPlayerState.cs
- LazyLoadBehavior.cs
- FileSystemEventArgs.cs
- WebPart.cs
- ResetableIterator.cs
- ClientTarget.cs
- DataRecordInfo.cs
- ThreadAttributes.cs
- BaseInfoTable.cs
- HttpPostedFile.cs
- ExpressionCopier.cs
- WebService.cs
- EDesignUtil.cs
- AdapterUtil.cs
- DelegatedStream.cs
- XmlDataSourceView.cs
- XamlBuildTaskServices.cs
- UserPreferenceChangingEventArgs.cs
- ModuleBuilderData.cs
- CryptoStream.cs
- HttpStreamXmlDictionaryWriter.cs
- RepeatButton.cs
- Decoder.cs
- TextFormatterHost.cs
- CodePropertyReferenceExpression.cs
- TreeNodeCollection.cs
- ExeContext.cs
- MessageBox.cs
- RegistryPermission.cs
- ParentUndoUnit.cs
- _UriTypeConverter.cs
- WebUtil.cs
- SqlProviderUtilities.cs
- ControlBindingsCollection.cs
- AddValidationError.cs
- WindowsPen.cs
- SoapExtensionTypeElement.cs
- ComAwareEventInfo.cs
- DataGridViewRow.cs
- Section.cs
- RouteParameter.cs
- GcSettings.cs
- RemotingServices.cs
- RotateTransform3D.cs
- ChannelProtectionRequirements.cs
- ServiceModelSecurityTokenRequirement.cs
- UrlUtility.cs
- XPathParser.cs
- DocumentXmlWriter.cs
- TableLayoutSettingsTypeConverter.cs
- SingleAnimationUsingKeyFrames.cs
- UxThemeWrapper.cs
- SqlPersonalizationProvider.cs
- ResourceAttributes.cs
- RuntimeUtils.cs