UpdateException.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / UpdateException.cs / 1 / UpdateException.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner  [....]
//--------------------------------------------------------------------- 
 
namespace System.Data
{ 
    using System;
    using System.Runtime.Serialization;
    using System.Security.Permissions;
    using System.Data.Objects; 
    using System.Collections.ObjectModel;
    using System.Collections.Generic; 
 
    /// 
    /// Exception during save changes to store 
    /// 
    [Serializable]
    public class UpdateException : DataException
    { 
        [NonSerialized]
        private ReadOnlyCollection _stateEntries; 
 

        #region constructors 
        /// 
        /// Default constructor
        /// 
        public UpdateException() 
            : base()
        { 
        } 

        ///  
        /// Constructor that takes a message
        /// 
        /// 
        public UpdateException(string message) 
            : base(message)
        { 
        } 

        ///  
        /// Constructor that takes a message and an inner exception
        /// 
        /// 
        ///  
        public UpdateException(string message, Exception innerException)
            : base(message, innerException) 
        { 
        }
 
        /// 
        /// Constructor that takes a message and an inner exception
        /// 
        ///  
        /// 
        ///  
        public UpdateException(string message, Exception innerException, IEnumerable stateEntries) 
            : base(message, innerException)
        { 
            List list = new List(stateEntries);
            _stateEntries = list.AsReadOnly();
        }
 
        /// 
        /// Gets state entries implicated in the error. 
        ///  
        public ReadOnlyCollection StateEntries { get { return _stateEntries; } }
 
        /// 
        /// The protected constructor for serialization
        /// 
        ///  
        /// 
        protected UpdateException(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.
// 
// 
// @owner  [....]
//--------------------------------------------------------------------- 
 
namespace System.Data
{ 
    using System;
    using System.Runtime.Serialization;
    using System.Security.Permissions;
    using System.Data.Objects; 
    using System.Collections.ObjectModel;
    using System.Collections.Generic; 
 
    /// 
    /// Exception during save changes to store 
    /// 
    [Serializable]
    public class UpdateException : DataException
    { 
        [NonSerialized]
        private ReadOnlyCollection _stateEntries; 
 

        #region constructors 
        /// 
        /// Default constructor
        /// 
        public UpdateException() 
            : base()
        { 
        } 

        ///  
        /// Constructor that takes a message
        /// 
        /// 
        public UpdateException(string message) 
            : base(message)
        { 
        } 

        ///  
        /// Constructor that takes a message and an inner exception
        /// 
        /// 
        ///  
        public UpdateException(string message, Exception innerException)
            : base(message, innerException) 
        { 
        }
 
        /// 
        /// Constructor that takes a message and an inner exception
        /// 
        ///  
        /// 
        ///  
        public UpdateException(string message, Exception innerException, IEnumerable stateEntries) 
            : base(message, innerException)
        { 
            List list = new List(stateEntries);
            _stateEntries = list.AsReadOnly();
        }
 
        /// 
        /// Gets state entries implicated in the error. 
        ///  
        public ReadOnlyCollection StateEntries { get { return _stateEntries; } }
 
        /// 
        /// The protected constructor for serialization
        /// 
        ///  
        /// 
        protected UpdateException(SerializationInfo info, StreamingContext context) 
            : base(info, context) 
        {
        } 

        #endregion
     }
} 

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