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 public TaskSchedulerException() : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage")) // { } ///class. /// /// Initializes a new instance of the /// The error message that explains the reason for the exception. public TaskSchedulerException(string message) : base(message) { } ////// class with a specified error message. /// /// Initializes a new instance of the /// The exception that is the cause of the current exception. public TaskSchedulerException(Exception innerException) : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage"), innerException) { } ////// class using the default error message and a reference to the inner exception that is the cause of /// this exception. /// /// Initializes a new instance of the /// 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) { } ////// class with a specified error message and a reference to the inner exception that is the cause of /// this exception. /// /// Initializes a new instance of the /// The/// class with serialized data. /// 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 public TaskSchedulerException() : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage")) // { } ///class. /// /// Initializes a new instance of the /// The error message that explains the reason for the exception. public TaskSchedulerException(string message) : base(message) { } ////// class with a specified error message. /// /// Initializes a new instance of the /// The exception that is the cause of the current exception. public TaskSchedulerException(Exception innerException) : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage"), innerException) { } ////// class using the default error message and a reference to the inner exception that is the cause of /// this exception. /// /// Initializes a new instance of the /// 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) { } ////// class with a specified error message and a reference to the inner exception that is the cause of /// this exception. /// /// Initializes a new instance of the /// The/// class with serialized data. /// 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
- DataViewSettingCollection.cs
- WinInet.cs
- ScrollProviderWrapper.cs
- WebPartManager.cs
- DBCSCodePageEncoding.cs
- XamlRtfConverter.cs
- ClassGenerator.cs
- activationcontext.cs
- GradientStop.cs
- DataPagerFieldCommandEventArgs.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- MaskInputRejectedEventArgs.cs
- Canvas.cs
- NamedPipeHostedTransportConfiguration.cs
- XmlAttribute.cs
- LineInfo.cs
- ListViewDeletedEventArgs.cs
- PersonalizationProviderHelper.cs
- TextEditorDragDrop.cs
- NamedPipeTransportElement.cs
- _IPv6Address.cs
- ExceptionCollection.cs
- WebRequest.cs
- UnescapedXmlDiagnosticData.cs
- TrackingMemoryStreamFactory.cs
- ChannelServices.cs
- FramingFormat.cs
- ToolboxComponentsCreatedEventArgs.cs
- EncodingTable.cs
- TemplateInstanceAttribute.cs
- SqlCachedBuffer.cs
- Number.cs
- IconHelper.cs
- SocketInformation.cs
- AddIn.cs
- ZipIOBlockManager.cs
- InvokeBinder.cs
- EntityDataSourceWizardForm.cs
- SiteMap.cs
- SystemResourceKey.cs
- Rotation3DKeyFrameCollection.cs
- WebBrowsableAttribute.cs
- HierarchicalDataBoundControlAdapter.cs
- CompositeFontFamily.cs
- DocComment.cs
- TextLine.cs
- ToolStripRenderer.cs
- CrossContextChannel.cs
- XmlSchemaAttribute.cs
- Listbox.cs
- GridEntry.cs
- EvidenceBase.cs
- LifetimeServices.cs
- HighlightVisual.cs
- WindowsFormsDesignerOptionService.cs
- Rule.cs
- RegexTree.cs
- ScriptBehaviorDescriptor.cs
- XpsDocumentEvent.cs
- CryptoHandle.cs
- Model3DGroup.cs
- ContextMenuStripGroupCollection.cs
- WebPartUtil.cs
- SqlStream.cs
- DivideByZeroException.cs
- NumberFunctions.cs
- Parser.cs
- ContainsSearchOperator.cs
- NameValueFileSectionHandler.cs
- WebDescriptionAttribute.cs
- ICollection.cs
- XmlReader.cs
- DataGridParentRows.cs
- GC.cs
- ExtendedProtectionPolicy.cs
- DoubleLinkListEnumerator.cs
- AudioException.cs
- VisualStates.cs
- KeyValueConfigurationCollection.cs
- KeyMatchBuilder.cs
- DesignSurfaceEvent.cs
- EditorBrowsableAttribute.cs
- TemplateControlBuildProvider.cs
- UrlMapping.cs
- InstanceKeyView.cs
- XPathCompiler.cs
- HttpCacheVary.cs
- PropertyGridEditorPart.cs
- InvalidateEvent.cs
- RepeaterItem.cs
- PenLineCapValidation.cs
- StreamingContext.cs
- IndexOutOfRangeException.cs
- HttpCookiesSection.cs
- TcpTransportBindingElement.cs
- TypeElementCollection.cs
- DataGridViewColumnHeaderCell.cs
- WaitHandleCannotBeOpenedException.cs
- AnimationClock.cs
- CacheDependency.cs