The Labs \ Source Viewer \ SSCLI \ System.ComponentModel \ InvalidAsynchronousStateException

  1. //------------------------------------------------------------------------------
  2. // <copyright file="InvalidAsynchronousStateException.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.ComponentModel
  16. {
  17.     using Microsoft.Win32;
  18.     using System;
  19.     using System.Diagnostics;
  20.     using System.Globalization;
  21.     using System.Runtime.Serialization;
  22.     using System.Security.Permissions;
  23.    
  24.     /// <devdoc>
  25.     /// <para>The exception that is thrown when a thread that an operation should execute on no longer exists or is not pumping messages</para>
  26.     /// </devdoc>
  27.     [HostProtection(SharedState = true)]
  28.     [Serializable()]
  29.     public class InvalidAsynchronousStateException : ArgumentException
  30.     {
  31.        
  32.         /// <devdoc>
  33.         /// <para>Initializes a new instance of the <see cref='System.ComponentModel.InvalidAsynchronousStateException'/> class without a message.</para>
  34.         /// </devdoc>
  35.         public InvalidAsynchronousStateException() : this(null)
  36.         {
  37.         }
  38.        
  39.         /// <devdoc>
  40.         /// <para>Initializes a new instance of the <see cref='System.ComponentModel.InvalidAsynchronousStateException'/> class with
  41.         /// the specified message.</para>
  42.         /// </devdoc>
  43.         public InvalidAsynchronousStateException(string message) : base(message)
  44.         {
  45.         }
  46.        
  47.         /// <devdoc>
  48.         /// Initializes a new instance of the Exception class with a specified error message and a
  49.         /// reference to the inner exception that is the cause of this exception.
  50.         /// </devdoc>
  51.         public InvalidAsynchronousStateException(string message, Exception innerException) : base(message, innerException)
  52.         {
  53.         }
  54.         /// <devdoc>
  55.         /// Need this constructor since Exception implements ISerializable. We don't have any fields,
  56.         /// so just forward this to base.
  57.         /// </devdoc>
  58.         protected InvalidAsynchronousStateException(SerializationInfo info, StreamingContext context) : base(info, context)
  59.         {
  60.         }
  61.     }
  62. }

Developer Fusion