RecognizeCompletedEventArgs.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 / Speech / Src / Recognition / RecognizeCompletedEventArgs.cs / 1 / RecognizeCompletedEventArgs.cs

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

 
using System; 
using System.ComponentModel;
 
namespace System.Speech.Recognition
{

    /// TODOC <_include file='doc\RecognizeCompletedEventArgs.uex' path='docs/doc[@for="RecognizeCompletedEventArgs"]/*' /> 

    public class RecognizeCompletedEventArgs : AsyncCompletedEventArgs 
    { 

        //******************************************************************* 
        //
        // Constructors
        //
        //******************************************************************* 

        #region Constructors 
 
        internal RecognizeCompletedEventArgs(RecognitionResult result, bool initialSilenceTimeout, bool babbleTimeout,
            bool inputStreamEnded, TimeSpan audioPosition, 
            Exception error, bool cancelled, object userState)
            : base(error, cancelled, userState)
        {
            _result = result; 
            _initialSilenceTimeout = initialSilenceTimeout;
            _babbleTimeout = babbleTimeout; 
            _inputStreamEnded = inputStreamEnded; 
            _audioPosition = audioPosition;
        } 

        #endregion

 
        //********************************************************************
        // 
        // Public Properties 
        //
        //******************************************************************* 

        #region Public Properties

        /// TODOC <_include file='doc\RecognizeCompletedEventArgs.uex' path='docs/doc[@for="RecognizeCompletedEventArgs.Result"]/*' /> 
        public RecognitionResult Result
        { 
            get { return _result; } 
        }
 
        /// TODOC <_include file='doc\RecognizeCompletedEventArgs.uex' path='docs/doc[@for="RecognizeCompletedEventArgs.SilenceTimeout"]/*' />
        public bool InitialSilenceTimeout
        {
            get { return _initialSilenceTimeout; } 
        }
 
        /// TODOC <_include file='doc\RecognizeCompletedEventArgs.uex' path='docs/doc[@for="RecognizeCompletedEventArgs.BabbleTimeout"]/*' /> 
        public bool BabbleTimeout
        { 
            get { return _babbleTimeout; }
        }

        /// TODOC <_include file='doc\RecognizeCompletedEventArgs.uex' path='docs/doc[@for="RecognizeCompletedEventArgs.BabbleTimeout"]/*' /> 
        public bool InputStreamEnded
        { 
            get { return _inputStreamEnded; } 
        }
 
        /// TODOC <_include file='doc\RecognizeCompletedEventArgs.uex' path='docs/doc[@for="RecognizeCompletedEventArgs.AudioPosition"]/*' />
        public TimeSpan AudioPosition
        {
            get { return _audioPosition; } 
        }
 
        #endregion 

 
        //********************************************************************
        //
        // Private Fields
        // 
        //********************************************************************
 
        #region Private Fields 

        private RecognitionResult _result; 
        private bool _initialSilenceTimeout;
        private bool _babbleTimeout;
        private bool _inputStreamEnded;
        private TimeSpan _audioPosition; 

        #endregion 
 
    }
 
}

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