Exceptions.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Management / Automation / Exceptions.cs / 1305376 / Exceptions.cs

                            using System; 
using System.Collections;
using System.Text;
using System.Runtime.Serialization;
 
namespace System.Management.Instrumentation
{ 
#region Instrumentation exceptions 
    [Serializable]
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] 
    public class InstrumentationBaseException : Exception
    {
        public InstrumentationBaseException()
            : base() 
        {
        } 
 
        public InstrumentationBaseException(string message)
            : base(message) 
        {
        }

        public InstrumentationBaseException(string message, Exception innerException) 
            : base(message, innerException)
        { 
        } 

        protected InstrumentationBaseException(SerializationInfo info, StreamingContext context) 
            :base (info, context)
        {
        }
    } 
    [Serializable]
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] 
    public class InstrumentationException:InstrumentationBaseException 
    {
        public InstrumentationException() 
            : base()
        {
        }
 
        public InstrumentationException(string message)
            : base(message) 
        { 

        } 

        public InstrumentationException(Exception innerException)
            : base(null, innerException)
        { 

        } 
 
        public InstrumentationException(string message, Exception innerException)
            : base(message, innerException) 
        {

        }
 
        protected InstrumentationException(SerializationInfo info, StreamingContext context)
            :base (info, context) 
        { 
        }
    } 
    [Serializable]
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
    public class InstanceNotFoundException : InstrumentationException
    { 
        public InstanceNotFoundException()
            : base() 
        { 
        }
 
        public InstanceNotFoundException(string message)
            : base(message)
        {
        } 
        public InstanceNotFoundException(string message, Exception innerException)
            : base(message, innerException) 
        { 
        }
        protected InstanceNotFoundException(SerializationInfo info, StreamingContext context) 
            :base (info, context)
        {
        }
    } 
#endregion
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System; 
using System.Collections;
using System.Text;
using System.Runtime.Serialization;
 
namespace System.Management.Instrumentation
{ 
#region Instrumentation exceptions 
    [Serializable]
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] 
    public class InstrumentationBaseException : Exception
    {
        public InstrumentationBaseException()
            : base() 
        {
        } 
 
        public InstrumentationBaseException(string message)
            : base(message) 
        {
        }

        public InstrumentationBaseException(string message, Exception innerException) 
            : base(message, innerException)
        { 
        } 

        protected InstrumentationBaseException(SerializationInfo info, StreamingContext context) 
            :base (info, context)
        {
        }
    } 
    [Serializable]
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] 
    public class InstrumentationException:InstrumentationBaseException 
    {
        public InstrumentationException() 
            : base()
        {
        }
 
        public InstrumentationException(string message)
            : base(message) 
        { 

        } 

        public InstrumentationException(Exception innerException)
            : base(null, innerException)
        { 

        } 
 
        public InstrumentationException(string message, Exception innerException)
            : base(message, innerException) 
        {

        }
 
        protected InstrumentationException(SerializationInfo info, StreamingContext context)
            :base (info, context) 
        { 
        }
    } 
    [Serializable]
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
    public class InstanceNotFoundException : InstrumentationException
    { 
        public InstanceNotFoundException()
            : base() 
        { 
        }
 
        public InstanceNotFoundException(string message)
            : base(message)
        {
        } 
        public InstanceNotFoundException(string message, Exception innerException)
            : base(message, innerException) 
        { 
        }
        protected InstanceNotFoundException(SerializationInfo info, StreamingContext context) 
            :base (info, context)
        {
        }
    } 
#endregion
} 

// 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