LoadGrammarCompletedEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / LoadGrammarCompletedEventArgs.cs / 1 / LoadGrammarCompletedEventArgs.cs

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

 
using System; 
using System.ComponentModel;
 
#pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages.

namespace System.Speech.Recognition
{ 

    /// TODOC <_include file='doc\RecognizerBase.uex' path='docs/doc[@for="LoadGrammarCompletedEventArgs"]/*' /> 
    // Event args used in the LoadGrammarCompleted event. 

    public class LoadGrammarCompletedEventArgs : AsyncCompletedEventArgs 
    {
        //*******************************************************************
        //
        // Constructors 
        //
        //******************************************************************* 
 
        #region Constructors
 
        internal LoadGrammarCompletedEventArgs(Grammar grammar, Exception error, bool cancelled, object userState)
            : base(error, cancelled, userState)
        {
            _grammar = grammar; 
        }
 
        #endregion 

 
        //********************************************************************
        //
        // Public Properties
        // 
        //*******************************************************************
 
        #region Public Properties 

        /// TODOC <_include file='doc\RecognizerBase.uex' path='docs/doc[@for="LoadGrammarCompletedEventArgs.Grammar"]/*' /> 
        public Grammar Grammar
        {
            get { return _grammar; }
        } 

        #endregion 
 

        //******************************************************************** 
        //
        // Private Fields
        //
        //******************************************************************** 

        #region Private Fields 
 
#pragma warning disable 6524
        private Grammar _grammar; 
#pragma warning restore 6524

        #endregion
 
    }
 
} 

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

 
using System; 
using System.ComponentModel;
 
#pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages.

namespace System.Speech.Recognition
{ 

    /// TODOC <_include file='doc\RecognizerBase.uex' path='docs/doc[@for="LoadGrammarCompletedEventArgs"]/*' /> 
    // Event args used in the LoadGrammarCompleted event. 

    public class LoadGrammarCompletedEventArgs : AsyncCompletedEventArgs 
    {
        //*******************************************************************
        //
        // Constructors 
        //
        //******************************************************************* 
 
        #region Constructors
 
        internal LoadGrammarCompletedEventArgs(Grammar grammar, Exception error, bool cancelled, object userState)
            : base(error, cancelled, userState)
        {
            _grammar = grammar; 
        }
 
        #endregion 

 
        //********************************************************************
        //
        // Public Properties
        // 
        //*******************************************************************
 
        #region Public Properties 

        /// TODOC <_include file='doc\RecognizerBase.uex' path='docs/doc[@for="LoadGrammarCompletedEventArgs.Grammar"]/*' /> 
        public Grammar Grammar
        {
            get { return _grammar; }
        } 

        #endregion 
 

        //******************************************************************** 
        //
        // Private Fields
        //
        //******************************************************************** 

        #region Private Fields 
 
#pragma warning disable 6524
        private Grammar _grammar; 
#pragma warning restore 6524

        #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