HtmlElementErrorEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / HtmlElementErrorEventArgs.cs / 1 / HtmlElementErrorEventArgs.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

using System; 
using System.ComponentModel; 

namespace System.Windows.Forms { 

    /// 
    /// 
    ///    EventArgs for onerror event of HtmlElement 
    /// 
    public sealed class HtmlElementErrorEventArgs : EventArgs { 
        private string description; 
        private string urlString;
        private Uri url; 
        private int lineNumber;
        private bool handled;

        internal HtmlElementErrorEventArgs(string description, string urlString, int lineNumber) 
        {
            this.description = description; 
            this.urlString = urlString; 
            this.lineNumber = lineNumber;
        } 

        /// 
        /// 
        ///    Description of error 
        /// 
        public string Description 
        { 
            get
            { 
                return description;
            }
        }
 
        /// 
        ///  
        ///     
        ///       Gets or sets a value indicating whether the 
        ///       event was handled. 
        ///    
        /// 
        public bool Handled {
            get { 
                return handled;
            } 
            set { 
                handled = value;
            } 
        }

        /// 
        ///  
        ///    Line number where error occurred
        ///  
        public int LineNumber 
        {
            get 
            {
                return lineNumber;
            }
        } 

        ///  
        ///  
        ///    Url where error occurred
        ///  
        public Uri Url
        {
            get
            { 
                if (url == null)
                { 
                    url = new Uri(urlString); 
                }
                return url; 
            }
        }
    }
} 


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