Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / Tasks / TaskSchedulerException.cs / 1305376 / TaskSchedulerException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// TaskSchedulerException.cs
//
// [....]
//
// An exception for task schedulers.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.Threading.Tasks
{
///
/// Represents an exception used to communicate an invalid operation by a
/// .
///
[Serializable]
public class TaskSchedulerException : Exception
{
///
/// Initializes a new instance of the class.
///
public TaskSchedulerException() : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage")) //
{
}
///
/// Initializes a new instance of the
/// class with a specified error message.
///
/// The error message that explains the reason for the exception.
public TaskSchedulerException(string message) : base(message)
{
}
///
/// Initializes a new instance of the
/// class using the default error message and a reference to the inner exception that is the cause of
/// this exception.
///
/// The exception that is the cause of the current exception.
public TaskSchedulerException(Exception innerException)
: base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage"), innerException)
{
}
///
/// Initializes a new instance of the
/// class with a specified error message and a reference to the inner exception that is the cause of
/// this exception.
///
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception.
public TaskSchedulerException(string message, Exception innerException) : base(message, innerException)
{
}
///
/// Initializes a new instance of the
/// class with serialized data.
///
/// The that holds
/// the serialized object data about the exception being thrown.
/// The that
/// contains contextual information about the source or destination.
protected TaskSchedulerException(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.
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// TaskSchedulerException.cs
//
// [....]
//
// An exception for task schedulers.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.Threading.Tasks
{
///
/// Represents an exception used to communicate an invalid operation by a
/// .
///
[Serializable]
public class TaskSchedulerException : Exception
{
///
/// Initializes a new instance of the class.
///
public TaskSchedulerException() : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage")) //
{
}
///
/// Initializes a new instance of the
/// class with a specified error message.
///
/// The error message that explains the reason for the exception.
public TaskSchedulerException(string message) : base(message)
{
}
///
/// Initializes a new instance of the
/// class using the default error message and a reference to the inner exception that is the cause of
/// this exception.
///
/// The exception that is the cause of the current exception.
public TaskSchedulerException(Exception innerException)
: base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage"), innerException)
{
}
///
/// Initializes a new instance of the
/// class with a specified error message and a reference to the inner exception that is the cause of
/// this exception.
///
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception.
public TaskSchedulerException(string message, Exception innerException) : base(message, innerException)
{
}
///
/// Initializes a new instance of the
/// class with serialized data.
///
/// The that holds
/// the serialized object data about the exception being thrown.
/// The that
/// contains contextual information about the source or destination.
protected TaskSchedulerException(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
- BuildResultCache.cs
- OnOperation.cs
- UnionCodeGroup.cs
- OutArgument.cs
- SqlDataSourceSelectingEventArgs.cs
- XsltContext.cs
- DES.cs
- OAVariantLib.cs
- OneWayChannelListener.cs
- GridViewUpdateEventArgs.cs
- CommonRemoteMemoryBlock.cs
- CultureTable.cs
- XmlAtomicValue.cs
- HttpBindingExtension.cs
- CompileLiteralTextParser.cs
- PairComparer.cs
- SystemIPInterfaceStatistics.cs
- CompiledAction.cs
- HorizontalAlignConverter.cs
- TypedDataSetSchemaImporterExtension.cs
- DataRowChangeEvent.cs
- Command.cs
- VectorCollectionValueSerializer.cs
- GridItem.cs
- StandardToolWindows.cs
- DatagridviewDisplayedBandsData.cs
- AxHost.cs
- DataGridAutoFormatDialog.cs
- QueryParameter.cs
- GCHandleCookieTable.cs
- XmlSchemaDocumentation.cs
- TabletDevice.cs
- XmlBinaryReaderSession.cs
- ServiceBehaviorAttribute.cs
- ContentElementAutomationPeer.cs
- SerializationObjectManager.cs
- HtmlInputCheckBox.cs
- CustomErrorsSection.cs
- NamespaceList.cs
- MiniParameterInfo.cs
- TextEndOfSegment.cs
- XMLUtil.cs
- FontFaceLayoutInfo.cs
- XmlNodeComparer.cs
- AbandonedMutexException.cs
- CounterSet.cs
- SubstitutionList.cs
- TreeNodeMouseHoverEvent.cs
- DefaultPrintController.cs
- GroupBoxRenderer.cs
- FormatConvertedBitmap.cs
- RegisteredExpandoAttribute.cs
- SingleStorage.cs
- Constant.cs
- SqlInternalConnectionTds.cs
- TypeTypeConverter.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- HealthMonitoringSectionHelper.cs
- VisualStyleInformation.cs
- ListBase.cs
- HiddenFieldPageStatePersister.cs
- SimpleWebHandlerParser.cs
- TemplateBamlTreeBuilder.cs
- RectangleHotSpot.cs
- XmlDownloadManager.cs
- DelegateArgumentValue.cs
- FontNamesConverter.cs
- CodeMemberMethod.cs
- DataKeyArray.cs
- PropertyMetadata.cs
- BasicCellRelation.cs
- HandlerBase.cs
- ManagedWndProcTracker.cs
- SqlDataReader.cs
- SoapServerMessage.cs
- DbRetry.cs
- Image.cs
- HtmlInputRadioButton.cs
- LongTypeConverter.cs
- RoleServiceManager.cs
- CipherData.cs
- ColorContextHelper.cs
- SecUtil.cs
- codemethodreferenceexpression.cs
- ContainerActivationHelper.cs
- XamlValidatingReader.cs
- ColorConverter.cs
- UInt64Converter.cs
- CodeArrayIndexerExpression.cs
- RadioButton.cs
- ToolStripDropDownDesigner.cs
- CommunicationException.cs
- ExpressionLexer.cs
- MultiBinding.cs
- HotSpotCollectionEditor.cs
- ExplicitDiscriminatorMap.cs
- TypeContext.cs
- Animatable.cs
- ShellProvider.cs
- MultiBinding.cs