Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- StreamUpgradeProvider.cs
- ParallelActivityDesigner.cs
- Root.cs
- ScriptReferenceEventArgs.cs
- Substitution.cs
- EdmToObjectNamespaceMap.cs
- IODescriptionAttribute.cs
- HandleValueEditor.cs
- EmptyStringExpandableObjectConverter.cs
- TextStore.cs
- Knowncolors.cs
- SAPIEngineTypes.cs
- TerminatorSinks.cs
- ResourcesGenerator.cs
- StyleSelector.cs
- MailHeaderInfo.cs
- MobileListItem.cs
- RadioButtonList.cs
- filewebresponse.cs
- VerticalAlignConverter.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- HandledEventArgs.cs
- RemotingServices.cs
- ReachPageContentCollectionSerializerAsync.cs
- CrossContextChannel.cs
- precedingsibling.cs
- CredentialCache.cs
- SqlCharStream.cs
- NamedPermissionSet.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- TrackingQueryElement.cs
- SystemBrushes.cs
- AudioDeviceOut.cs
- NamespaceMapping.cs
- AsyncPostBackErrorEventArgs.cs
- CodeTypeDeclaration.cs
- SymmetricKeyWrap.cs
- TextCompositionEventArgs.cs
- FontStyleConverter.cs
- Stacktrace.cs
- DiagnosticsConfigurationHandler.cs
- EventLog.cs
- LayoutSettings.cs
- HandleValueEditor.cs
- XamlRtfConverter.cs
- XmlReader.cs
- SerializationAttributes.cs
- ScrollEventArgs.cs
- NonceToken.cs
- DataGridViewColumnDesigner.cs
- ExpressionPrefixAttribute.cs
- DragDropManager.cs
- ExeContext.cs
- DataGridViewCellStyle.cs
- ErrorLog.cs
- SchemaEntity.cs
- TableSectionStyle.cs
- XmlTextReader.cs
- WebPartMenu.cs
- Latin1Encoding.cs
- IIS7WorkerRequest.cs
- WebPartMinimizeVerb.cs
- SocketException.cs
- WebPartDisplayModeEventArgs.cs
- KeyConverter.cs
- ByteRangeDownloader.cs
- ExpressionDumper.cs
- TableRowGroup.cs
- CompilationSection.cs
- ToolStripDropDownItemDesigner.cs
- WpfWebRequestHelper.cs
- RealProxy.cs
- TimeEnumHelper.cs
- DockPattern.cs
- Nodes.cs
- DomNameTable.cs
- XMLDiffLoader.cs
- DrawingContextDrawingContextWalker.cs
- SizeConverter.cs
- Simplifier.cs
- SafeNativeMethodsOther.cs
- UserControlParser.cs
- WindowsStartMenu.cs
- WebPartDeleteVerb.cs
- SerialErrors.cs
- ZipIOModeEnforcingStream.cs
- DeploymentSection.cs
- DupHandleConnectionReader.cs
- WindowsListBox.cs
- InputReferenceExpression.cs
- ControlType.cs
- BoolLiteral.cs
- ToolTipAutomationPeer.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PowerModeChangedEventArgs.cs
- SimpleRecyclingCache.cs
- ScriptManager.cs
- BoundingRectTracker.cs
- WebPartEditorCancelVerb.cs
- HwndProxyElementProvider.cs