File: Recognition\EmulateRecognizeCompletedEventArgs.cs
Web Access
Project: src\src\runtime\src\libraries\System.Speech\src\System.Speech.csproj (System.Speech)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.ComponentModel;

namespace System.Speech.Recognition
{
    public class EmulateRecognizeCompletedEventArgs : AsyncCompletedEventArgs
    {
        #region Constructors

        internal EmulateRecognizeCompletedEventArgs(RecognitionResult? result, Exception? error, bool cancelled, object? userState)
            : base(error, cancelled, userState)
        {
            _result = result;
        }

        #endregion

        #region Public Properties
        public RecognitionResult? Result
        {
            get { return _result; }
        }

        #endregion

        #region Private Fields

        private RecognitionResult? _result;

        #endregion
    }
}