InvalidAsynchronousStateException.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InvalidAsynchronousStateException.cs / 1305376 / 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.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK