Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RectValueSerializer.cs
- PrimitiveXmlSerializers.cs
- DesignerTextViewAdapter.cs
- StateChangeEvent.cs
- XmlBindingWorker.cs
- PermissionAttributes.cs
- SafeNativeMethods.cs
- SqlNodeAnnotation.cs
- XPathPatternBuilder.cs
- QueryableDataSource.cs
- WmpBitmapDecoder.cs
- Crypto.cs
- DesignerTransactionCloseEvent.cs
- CodeChecksumPragma.cs
- ListViewCancelEventArgs.cs
- ElementUtil.cs
- BuilderElements.cs
- TransportConfigurationTypeElementCollection.cs
- exports.cs
- RowToParametersTransformer.cs
- SessionState.cs
- MainMenu.cs
- XmlDataSource.cs
- PasswordRecovery.cs
- AppDomainManager.cs
- FusionWrap.cs
- NonParentingControl.cs
- ComponentResourceManager.cs
- DesignerCommandAdapter.cs
- CacheEntry.cs
- Context.cs
- ExplicitDiscriminatorMap.cs
- BindableTemplateBuilder.cs
- Html32TextWriter.cs
- HttpResponseMessageProperty.cs
- MatrixAnimationBase.cs
- WebPartHelpVerb.cs
- IndentTextWriter.cs
- SerializationAttributes.cs
- LoadItemsEventArgs.cs
- OpenTypeCommon.cs
- KnownTypes.cs
- ReadOnlyObservableCollection.cs
- Configuration.cs
- SqlXmlStorage.cs
- COSERVERINFO.cs
- QueryAsyncResult.cs
- XmlSchemaDatatype.cs
- FontInfo.cs
- PtsContext.cs
- _ChunkParse.cs
- TransportSecurityHelpers.cs
- Msmq3PoisonHandler.cs
- keycontainerpermission.cs
- SettingsPropertyIsReadOnlyException.cs
- TypeResolvingOptions.cs
- ComplexTypeEmitter.cs
- validationstate.cs
- Constant.cs
- RtfFormatStack.cs
- Type.cs
- WindowsFormsHelpers.cs
- ClusterRegistryConfigurationProvider.cs
- RootBrowserWindowProxy.cs
- DataGridViewAccessibleObject.cs
- AssemblyAttributesGoHere.cs
- ServiceManagerHandle.cs
- SqlDataReader.cs
- ModuleBuilder.cs
- EnumValAlphaComparer.cs
- SortedSet.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SqlDependencyListener.cs
- GraphicsContainer.cs
- Int64KeyFrameCollection.cs
- CatalogZoneBase.cs
- AssemblyHash.cs
- SystemColors.cs
- OrCondition.cs
- CodeLabeledStatement.cs
- Block.cs
- WindowsListBox.cs
- ApplicationServiceManager.cs
- EntityDataSourceDesignerHelper.cs
- UidPropertyAttribute.cs
- ObjectStateManagerMetadata.cs
- SQLBinaryStorage.cs
- PerformanceCounterPermissionEntryCollection.cs
- QuerySubExprEliminator.cs
- RegexMatchCollection.cs
- CodeMethodReturnStatement.cs
- ACL.cs
- QilTargetType.cs
- XslVisitor.cs
- SwitchLevelAttribute.cs
- TcpStreams.cs
- Membership.cs
- Int64KeyFrameCollection.cs
- DrawTreeNodeEventArgs.cs
- ParameterModifier.cs