Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / InvalidAsynchronousStateException.cs / 1 / InvalidAsynchronousStateException.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.Serialization;
using System.Security.Permissions;
///
/// The exception that is thrown when a thread that an operation should execute on no longer exists or is not pumping messages
///
[HostProtection(SharedState = true)]
[Serializable]
public class InvalidAsynchronousStateException : ArgumentException {
///
/// Initializes a new instance of the class without a message.
///
public InvalidAsynchronousStateException() : this(null) {
}
///
/// Initializes a new instance of the class with
/// the specified message.
///
public InvalidAsynchronousStateException(string message)
: base(message) {
}
///
/// Initializes a new instance of the Exception class with a specified error message and a
/// reference to the inner exception that is the cause of this exception.
///
public InvalidAsynchronousStateException(string message, Exception innerException )
: base(message, innerException) {
}
///
/// Need this constructor since Exception implements ISerializable. We don't have any fields,
/// so just forward this to base.
///
protected InvalidAsynchronousStateException(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.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.Serialization;
using System.Security.Permissions;
///
/// The exception that is thrown when a thread that an operation should execute on no longer exists or is not pumping messages
///
[HostProtection(SharedState = true)]
[Serializable]
public class InvalidAsynchronousStateException : ArgumentException {
///
/// Initializes a new instance of the class without a message.
///
public InvalidAsynchronousStateException() : this(null) {
}
///
/// Initializes a new instance of the class with
/// the specified message.
///
public InvalidAsynchronousStateException(string message)
: base(message) {
}
///
/// Initializes a new instance of the Exception class with a specified error message and a
/// reference to the inner exception that is the cause of this exception.
///
public InvalidAsynchronousStateException(string message, Exception innerException )
: base(message, innerException) {
}
///
/// Need this constructor since Exception implements ISerializable. We don't have any fields,
/// so just forward this to base.
///
protected InvalidAsynchronousStateException(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
- QueryCursorEventArgs.cs
- BoolExpr.cs
- itemelement.cs
- ContractListAdapter.cs
- PointKeyFrameCollection.cs
- RayHitTestParameters.cs
- TableLayoutCellPaintEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlExpressionDumper.cs
- StateMachineExecutionState.cs
- DivideByZeroException.cs
- OutputScope.cs
- Size3DValueSerializer.cs
- Attributes.cs
- ApplyTemplatesAction.cs
- BitmapCacheBrush.cs
- ServiceContractGenerationContext.cs
- KnownTypes.cs
- SmtpReplyReader.cs
- XmlBinaryReader.cs
- ActivityBindForm.Designer.cs
- CallbackValidator.cs
- updateconfighost.cs
- GenerateScriptTypeAttribute.cs
- PrtTicket_Public_Simple.cs
- XmlC14NWriter.cs
- Int32Rect.cs
- PermissionSetEnumerator.cs
- DmlSqlGenerator.cs
- OleDbInfoMessageEvent.cs
- X509Certificate.cs
- RtfFormatStack.cs
- ThreadNeutralSemaphore.cs
- XmlName.cs
- HashAlgorithm.cs
- NonBatchDirectoryCompiler.cs
- MembershipUser.cs
- TextBlock.cs
- HtmlElementErrorEventArgs.cs
- WebPartCatalogAddVerb.cs
- ToolTip.cs
- ManifestSignatureInformation.cs
- mactripleDES.cs
- AttachInfo.cs
- ObjectDataSourceChooseTypePanel.cs
- SocketException.cs
- MenuAdapter.cs
- DependsOnAttribute.cs
- WebBrowserContainer.cs
- ExternalFile.cs
- X509InitiatorCertificateClientElement.cs
- ExpressionPrefixAttribute.cs
- XmlSerializerFactory.cs
- ComboBoxRenderer.cs
- TableParaClient.cs
- EndpointDiscoveryMetadata.cs
- MessageEncoder.cs
- CrossSiteScriptingValidation.cs
- UrlPath.cs
- SafeRightsManagementQueryHandle.cs
- SqlNodeTypeOperators.cs
- SaveWorkflowAsyncResult.cs
- WebBrowser.cs
- MemoryPressure.cs
- TreeViewCancelEvent.cs
- DelegateInArgument.cs
- ScrollBarAutomationPeer.cs
- Decimal.cs
- CollectionDataContractAttribute.cs
- ReadOnlyDataSource.cs
- UIElementIsland.cs
- DrawingGroupDrawingContext.cs
- MatrixAnimationBase.cs
- _ProxyRegBlob.cs
- WorkerRequest.cs
- SimpleWorkerRequest.cs
- VirtualDirectoryMapping.cs
- TextFormatterHost.cs
- DrawingBrush.cs
- TraceSection.cs
- FixedSOMLineRanges.cs
- ReaderWriterLock.cs
- GridViewEditEventArgs.cs
- HasCopySemanticsAttribute.cs
- DataMisalignedException.cs
- BoolLiteral.cs
- ThrowHelper.cs
- ComplexLine.cs
- TextTreePropertyUndoUnit.cs
- ServiceHost.cs
- TagMapCollection.cs
- SaveFileDialog.cs
- Stopwatch.cs
- JapaneseCalendar.cs
- OciHandle.cs
- AbstractSvcMapFileLoader.cs
- ZipFileInfo.cs
- Thickness.cs
- SqlInternalConnectionSmi.cs
- LoadWorkflowAsyncResult.cs