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
- TableLayoutPanelCodeDomSerializer.cs
- CustomAttributeSerializer.cs
- OneOfScalarConst.cs
- DecimalConstantAttribute.cs
- ItemsControl.cs
- Rss20FeedFormatter.cs
- PageBreakRecord.cs
- Image.cs
- MetadataUtilsSmi.cs
- LayoutTable.cs
- ColumnResult.cs
- WorkflowInlining.cs
- Exceptions.cs
- XmlSchemaRedefine.cs
- MetadataPropertyAttribute.cs
- webproxy.cs
- SamlAudienceRestrictionCondition.cs
- DataRelationCollection.cs
- ISSmlParser.cs
- StreamSecurityUpgradeInitiatorBase.cs
- IFlowDocumentViewer.cs
- TextRangeBase.cs
- BufferModesCollection.cs
- EntityDataSourceContainerNameItem.cs
- DataPager.cs
- SystemKeyConverter.cs
- ResourceReferenceExpression.cs
- ComboBoxAutomationPeer.cs
- PageRanges.cs
- _ScatterGatherBuffers.cs
- ControlParameter.cs
- NumericUpDownAcceleration.cs
- Registry.cs
- Quad.cs
- ValidatorCollection.cs
- DefaultAsyncDataDispatcher.cs
- RuntimeConfigLKG.cs
- WsatServiceCertificate.cs
- MLangCodePageEncoding.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WizardSideBarListControlItem.cs
- SemanticResolver.cs
- RegionIterator.cs
- TextTreeDeleteContentUndoUnit.cs
- SqlDataSourceQueryConverter.cs
- TableRow.cs
- PreviewPageInfo.cs
- controlskin.cs
- Cell.cs
- TCPClient.cs
- ProfileEventArgs.cs
- SymbolPair.cs
- OdbcConnectionFactory.cs
- PageThemeCodeDomTreeGenerator.cs
- DrawingContextWalker.cs
- MulticastIPAddressInformationCollection.cs
- QueryTaskGroupState.cs
- DetailsViewDeletedEventArgs.cs
- ContractHandle.cs
- TextAnchor.cs
- TypeConverter.cs
- ObjectTokenCategory.cs
- XmlToDatasetMap.cs
- AppSecurityManager.cs
- AccessKeyManager.cs
- OleDbPermission.cs
- ServiceModelInstallComponent.cs
- BezierSegment.cs
- Rect3DConverter.cs
- SettingsPropertyValueCollection.cs
- ObjectQueryProvider.cs
- DragCompletedEventArgs.cs
- InputChannelAcceptor.cs
- DetailsViewRow.cs
- GroupQuery.cs
- DesignerDataTable.cs
- Converter.cs
- CustomLineCap.cs
- MouseEventArgs.cs
- SimpleHandlerBuildProvider.cs
- Setter.cs
- ToolStripStatusLabel.cs
- MetaModel.cs
- Parser.cs
- TypeForwardedToAttribute.cs
- IndentTextWriter.cs
- WsdlInspector.cs
- ProbeMatches11.cs
- JulianCalendar.cs
- DataGridViewLinkCell.cs
- AttributeCollection.cs
- UIElementAutomationPeer.cs
- TemplatedEditableDesignerRegion.cs
- ActiveDocumentEvent.cs
- Convert.cs
- PointKeyFrameCollection.cs
- MDIControlStrip.cs
- XmlWriterTraceListener.cs
- Panel.cs
- DataSourceView.cs