DocumentEventArgs.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 / Design / DocumentEventArgs.cs / 1305376 / DocumentEventArgs.cs

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

/* 
 */ 
namespace System.ComponentModel.Design {
    using Microsoft.Win32; 
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Security.Permissions; 

    ///  
    /// Provides data for the System.ComponentModel.Design.IDesignerEventService.DesignerEvent 
    /// event that is generated when a document is created or disposed.
    ///  
    [HostProtection(SharedState = true)]
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
    public class DesignerEventArgs : EventArgs { 
        private readonly IDesignerHost host;
 
        ///  
        ///    
        ///       Initializes a new instance of the System.ComponentModel.Design.DesignerEventArgs 
        ///       class.
        ///    
        /// 
        public DesignerEventArgs(IDesignerHost host) { 
            this.host = host;
        } 
 
        /// 
        ///     
        ///       Gets or
        ///       sets the host of the document.
        ///    
        ///  
        public IDesignerHost Designer {
            get { 
                return host; 
            }
        } 
    }
}


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