RecognitionEventArgs.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 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Result / RecognitionEventArgs.cs / 1 / RecognitionEventArgs.cs

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

 
using System; 

namespace System.Speech.Recognition 
{

    /// TODOC
 
    [Serializable]
    public abstract class RecognitionEventArgs : EventArgs 
    { 
        //*******************************************************************
        // 
        // Constructors
        //
        //*******************************************************************
        #region Constructors 
        internal RecognitionEventArgs (RecognitionResult result)
        { 
            _result = result; 
        }
        #endregion 

        //********************************************************************
        //
        // Public Properties 
        //
        //******************************************************************* 
        #region Public Properties 
        // All this class has is a property to access the main result.
        /// TODOC <_include file='doc\RecognitionResult.uex' path='docs/doc[@for="RecognitionEventArgs.Result"]/*' /> 
        public RecognitionResult Result
        {
            get { return _result; }
        } 
        #endregion
 
        //******************************************************************** 
        //
        // Private Fields 
        //
        //********************************************************************
        #region Private Fields
        private RecognitionResult _result; 
        #endregion
    } 
 
    /// TODOC
    [Serializable] 
    public class SpeechRecognizedEventArgs : RecognitionEventArgs
    {
        //*******************************************************************
        // 
        // Constructors
        // 
        //******************************************************************** 
        #region Constructors
 
        internal SpeechRecognizedEventArgs (RecognitionResult result)
            : base (result)
        {
        } 

        #endregion 
    } 

    /// TODOC 
    [Serializable]
    public class SpeechRecognitionRejectedEventArgs : RecognitionEventArgs
    {
        //******************************************************************* 
        //
        // Constructors 
        // 
        //*******************************************************************
        #region Constructors 

        internal SpeechRecognitionRejectedEventArgs (RecognitionResult result)
            : base (result)
        { 
        }
 
        #endregion 
    }
 
    /// TODOC
    [Serializable]
    public class SpeechHypothesizedEventArgs : RecognitionEventArgs
    { 
        //*******************************************************************
        // 
        // Constructors 
        //
        //******************************************************************** 
        #region Constructors

        internal SpeechHypothesizedEventArgs (RecognitionResult result)
            : base (result) 
        {
        } 
 
        #endregion
    } 
}


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------- 

 
using System; 

namespace System.Speech.Recognition 
{

    /// TODOC
 
    [Serializable]
    public abstract class RecognitionEventArgs : EventArgs 
    { 
        //*******************************************************************
        // 
        // Constructors
        //
        //*******************************************************************
        #region Constructors 
        internal RecognitionEventArgs (RecognitionResult result)
        { 
            _result = result; 
        }
        #endregion 

        //********************************************************************
        //
        // Public Properties 
        //
        //******************************************************************* 
        #region Public Properties 
        // All this class has is a property to access the main result.
        /// TODOC <_include file='doc\RecognitionResult.uex' path='docs/doc[@for="RecognitionEventArgs.Result"]/*' /> 
        public RecognitionResult Result
        {
            get { return _result; }
        } 
        #endregion
 
        //******************************************************************** 
        //
        // Private Fields 
        //
        //********************************************************************
        #region Private Fields
        private RecognitionResult _result; 
        #endregion
    } 
 
    /// TODOC
    [Serializable] 
    public class SpeechRecognizedEventArgs : RecognitionEventArgs
    {
        //*******************************************************************
        // 
        // Constructors
        // 
        //******************************************************************** 
        #region Constructors
 
        internal SpeechRecognizedEventArgs (RecognitionResult result)
            : base (result)
        {
        } 

        #endregion 
    } 

    /// TODOC 
    [Serializable]
    public class SpeechRecognitionRejectedEventArgs : RecognitionEventArgs
    {
        //******************************************************************* 
        //
        // Constructors 
        // 
        //*******************************************************************
        #region Constructors 

        internal SpeechRecognitionRejectedEventArgs (RecognitionResult result)
            : base (result)
        { 
        }
 
        #endregion 
    }
 
    /// TODOC
    [Serializable]
    public class SpeechHypothesizedEventArgs : RecognitionEventArgs
    { 
        //*******************************************************************
        // 
        // Constructors 
        //
        //******************************************************************** 
        #region Constructors

        internal SpeechHypothesizedEventArgs (RecognitionResult result)
            : base (result) 
        {
        } 
 
        #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