ReturnEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Navigation / ReturnEventArgs.cs / 1 / ReturnEventArgs.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: 
//              ReturnEventArgs is a generic flavor of EventArgs, 
//              that enable setting, getting a typed value that's
//              passed between Pagefunctions. 
//
// History:
//  05/09/03:      [....]     Created.
//  07/08/04:      [....]     Rename and make it compliant with guideline. 
//
//--------------------------------------------------------------------------- 
 
using System;
namespace System.Windows.Navigation 
{
    ///
    ///     ReturnEventArgs is a generic flavor of EventArgs,
    ///     that enable setting, getting a typed value that's 
    ///     passed between Pagefunctions.
    /// 
    public class ReturnEventArgs : System.EventArgs 
    {
 
        //-----------------------------------------------------
        //
        //  Constructors
        // 
        //-----------------------------------------------------
 
        #region Constructors 

        /// 
        /// ReturnEventArgs constructor
        ///
        public ReturnEventArgs()
        { 

        } 
        /// 
        /// ReturnEventArgs constructor. Supplied value is assigned to Result value
        /// 
        ///Assigned to Result property
        public ReturnEventArgs( T result)
        {
            _result = result; 
        }
 
        #endregion Constructors 

        //------------------------------------------------------ 
        //
        //  Public Properties
        //
        //----------------------------------------------------- 

        #region Public Properties 
 
        ///
        ///     The Result property indicates the result that a PageFunction is 
        ///     returning to it's caller, at the end of a Structured Navigation.
        ///
        public T Result
        { 
            get
            { 
                return _result; 
            }
            set 
            {
                _result = value;
            }
        } 

        #endregion Public Properties 
 
        //------------------------------------------------------
        // 
        //  Private Fields
        //
        //------------------------------------------------------
 
        #region Private Fields
 
        private T _result; 

        #endregion Private Fields 


    }
 
}

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