DispatcherHookEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Threading / DispatcherHookEventArgs.cs / 1305600 / DispatcherHookEventArgs.cs

                            namespace System.Windows.Threading 
{
    /// 
    ///     Additional information provided about a dispatcher.
    ///  
    public sealed class DispatcherHookEventArgs : EventArgs
    { 
        ///  
        ///     Constructs an instance of the DispatcherHookEventArgs class.
        ///  
        /// 
        ///     The operation in question.
        /// 
        public DispatcherHookEventArgs(DispatcherOperation operation) 
        {
            _operation = operation; 
        } 

        ///  
        ///     The dispatcher effected.
        /// 
        public Dispatcher Dispatcher
        { 
            get
            { 
                return _operation != null ? _operation.Dispatcher : null; 
            }
        } 

        /// 
        ///     The operation effected.
        ///  
        public DispatcherOperation Operation
        { 
            get 
            {
                return _operation; 
            }
        }

        private DispatcherOperation _operation; 
    }
 
    ///  
    ///     The handler for the DispatcherHookEventArgs.
    ///  
    public delegate void DispatcherHookEventHandler(object sender, DispatcherHookEventArgs e);
}


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Windows.Threading 
{
    /// 
    ///     Additional information provided about a dispatcher.
    ///  
    public sealed class DispatcherHookEventArgs : EventArgs
    { 
        ///  
        ///     Constructs an instance of the DispatcherHookEventArgs class.
        ///  
        /// 
        ///     The operation in question.
        /// 
        public DispatcherHookEventArgs(DispatcherOperation operation) 
        {
            _operation = operation; 
        } 

        ///  
        ///     The dispatcher effected.
        /// 
        public Dispatcher Dispatcher
        { 
            get
            { 
                return _operation != null ? _operation.Dispatcher : null; 
            }
        } 

        /// 
        ///     The operation effected.
        ///  
        public DispatcherOperation Operation
        { 
            get 
            {
                return _operation; 
            }
        }

        private DispatcherOperation _operation; 
    }
 
    ///  
    ///     The handler for the DispatcherHookEventArgs.
    ///  
    public delegate void DispatcherHookEventHandler(object sender, DispatcherHookEventArgs e);
}


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