ProxyAssemblyNotLoadedException.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / UIAutomationTypes / System / Windows / Automation / ProxyAssemblyNotLoadedException.cs / 1 / ProxyAssemblyNotLoadedException.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: Exception thrown when proxy assembly is requried but not yet loaded 
//
// History: 
//  06/02/2003 : BrendanM Ported to WCP
//
//---------------------------------------------------------------------------
 

using System.Windows.Automation; 
using System; 
using System.Text;
//using System.Globalization; 
//using System.Collections;
using MS.Internal;
//using System.Runtime.InteropServices;
using System.Reflection; 
//using System.Diagnostics;
using System.Runtime.Serialization; 
using System.Security.Permissions; 

namespace System.Windows.Automation 
{
    /// 
    /// This exception is thrown when there is a problem laoading a proxy assembly.  This can happen
    /// In reponse to Automation.RegisterProxyAssembly or when loading the default proxies when the 
    /// first hwnd base AutomationElement is encountered.
    ///  
    [Serializable] 
#if (INTERNAL_COMPILE)
    internal class ProxyAssemblyNotLoadedException : Exception 
#else
    public class ProxyAssemblyNotLoadedException : Exception
#endif
    { 
        /// 
        /// Default constructor 
        ///  
        public ProxyAssemblyNotLoadedException() {}
 
        /// 
        /// constructor
        /// 
        ///  
        public ProxyAssemblyNotLoadedException(String message) : base(message) {}
 
        ///  
        /// constructor
        ///  
        /// 
        /// 
        public  ProxyAssemblyNotLoadedException(string message, Exception innerException) : base(message, innerException) {}
 
        /// 
        /// Constructor for serialization 
        ///  
        //CASRemoval:[SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)]
        protected ProxyAssemblyNotLoadedException(SerializationInfo info, StreamingContext context) : base(info, context) {} 

        /// 
        /// Populates a SerializationInfo with the data needed to serialize the target object.
        ///  
        /// The SerializationInfo to populate with data.
        /// The destination for this serialization. 
        [SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)] 
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        { 
            base.GetObjectData(info, context);
        }

    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: Exception thrown when proxy assembly is requried but not yet loaded 
//
// History: 
//  06/02/2003 : BrendanM Ported to WCP
//
//---------------------------------------------------------------------------
 

using System.Windows.Automation; 
using System; 
using System.Text;
//using System.Globalization; 
//using System.Collections;
using MS.Internal;
//using System.Runtime.InteropServices;
using System.Reflection; 
//using System.Diagnostics;
using System.Runtime.Serialization; 
using System.Security.Permissions; 

namespace System.Windows.Automation 
{
    /// 
    /// This exception is thrown when there is a problem laoading a proxy assembly.  This can happen
    /// In reponse to Automation.RegisterProxyAssembly or when loading the default proxies when the 
    /// first hwnd base AutomationElement is encountered.
    ///  
    [Serializable] 
#if (INTERNAL_COMPILE)
    internal class ProxyAssemblyNotLoadedException : Exception 
#else
    public class ProxyAssemblyNotLoadedException : Exception
#endif
    { 
        /// 
        /// Default constructor 
        ///  
        public ProxyAssemblyNotLoadedException() {}
 
        /// 
        /// constructor
        /// 
        ///  
        public ProxyAssemblyNotLoadedException(String message) : base(message) {}
 
        ///  
        /// constructor
        ///  
        /// 
        /// 
        public  ProxyAssemblyNotLoadedException(string message, Exception innerException) : base(message, innerException) {}
 
        /// 
        /// Constructor for serialization 
        ///  
        //CASRemoval:[SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)]
        protected ProxyAssemblyNotLoadedException(SerializationInfo info, StreamingContext context) : base(info, context) {} 

        /// 
        /// Populates a SerializationInfo with the data needed to serialize the target object.
        ///  
        /// The SerializationInfo to populate with data.
        /// The destination for this serialization. 
        [SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)] 
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        { 
            base.GetObjectData(info, context);
        }

    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

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