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
- HostUtils.cs
- TableCellCollection.cs
- Method.cs
- ThreadExceptionEvent.cs
- SHA512CryptoServiceProvider.cs
- HtmlTable.cs
- HtmlGenericControl.cs
- PlaceHolder.cs
- MemberProjectionIndex.cs
- ExtenderProviderService.cs
- EventDriven.cs
- StrongNameIdentityPermission.cs
- IisTraceListener.cs
- CompilerInfo.cs
- StrokeCollectionDefaultValueFactory.cs
- ObjectAnimationBase.cs
- ToolStripLabel.cs
- InvalidPrinterException.cs
- XmlObjectSerializerWriteContext.cs
- WindowsScroll.cs
- FileDialogPermission.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- FormViewInsertEventArgs.cs
- DataBinder.cs
- FieldDescriptor.cs
- SemaphoreSecurity.cs
- TriggerCollection.cs
- DataGridViewRowCancelEventArgs.cs
- parserscommon.cs
- Transform3DGroup.cs
- HtmlTextViewAdapter.cs
- ColorConverter.cs
- XmlSerializerOperationGenerator.cs
- XmlTextEncoder.cs
- InstanceContext.cs
- OpCopier.cs
- EndOfStreamException.cs
- XmlEnumAttribute.cs
- StylusButton.cs
- SignatureDescription.cs
- SqlDataSourceEnumerator.cs
- VideoDrawing.cs
- DataServiceRequestOfT.cs
- invalidudtexception.cs
- TypeSystem.cs
- TargetParameterCountException.cs
- XmlWrappingReader.cs
- XPathAncestorIterator.cs
- ByteStream.cs
- DataGridColumnFloatingHeader.cs
- formatter.cs
- SqlWebEventProvider.cs
- LambdaCompiler.Statements.cs
- AutomationPropertyInfo.cs
- CompoundFileDeflateTransform.cs
- TraceSection.cs
- SpeechRecognitionEngine.cs
- XamlTypeMapper.cs
- TraversalRequest.cs
- PtsCache.cs
- ObjectParameterCollection.cs
- WebRequestModulesSection.cs
- ColorDialog.cs
- EntitySetBaseCollection.cs
- WinFormsComponentEditor.cs
- D3DImage.cs
- ExceptionValidationRule.cs
- FederatedMessageSecurityOverHttpElement.cs
- WpfGeneratedKnownProperties.cs
- SmiGettersStream.cs
- CreateUserWizardDesigner.cs
- LabelLiteral.cs
- HtmlTableCellCollection.cs
- XmlSecureResolver.cs
- TransformGroup.cs
- Marshal.cs
- RulePatternOps.cs
- SqlDataSource.cs
- GlyphRun.cs
- SoapFaultCodes.cs
- DataServiceProcessingPipelineEventArgs.cs
- PrincipalPermission.cs
- SpecularMaterial.cs
- ModuleConfigurationInfo.cs
- SymDocumentType.cs
- MimeFormReflector.cs
- MarkupWriter.cs
- PersonalizationAdministration.cs
- ExpressionBuilder.cs
- HttpCacheParams.cs
- VarRemapper.cs
- TextInfo.cs
- ListBoxAutomationPeer.cs
- HeaderCollection.cs
- __Filters.cs
- EmptyEnumerator.cs
- StreamResourceInfo.cs
- TableAutomationPeer.cs
- EntityDataSourceSelectingEventArgs.cs
- UserControlCodeDomTreeGenerator.cs