VoiceChangeEventArgs 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 VoiceChange 事件返回数据。
public ref class VoiceChangeEventArgs : System::Speech::Synthesis::PromptEventArgspublic class VoiceChangeEventArgs : System.Speech.Synthesis.PromptEventArgstype VoiceChangeEventArgs = class
    inherit PromptEventArgsPublic Class VoiceChangeEventArgs
Inherits PromptEventArgs- 继承
注解
当 对象引发 事件时SpeechSynthesizer,会创建 的VoiceChange实例VoiceChangeEventArgs。 若要获取新 Voice的标识,请在 事件的处理程序中访问 Voice 属性。
可以使用 的任何 PromptBuilderStartVoice 方法或 SpeechSynthesizer的 SelectVoice 或 SelectVoiceByHints 方法更改 正在使用的语音SpeechSynthesizer。
属性
| Cancelled | 获取一个值,该值指示异步操作是否已被取消。(继承自 AsyncCompletedEventArgs) | 
| Error | 获取一个值,该值指示异步操作期间发生的错误。(继承自 AsyncCompletedEventArgs) | 
| Prompt | 获取与事件关联的提示。(继承自 PromptEventArgs) | 
| UserState | 获取异步任务的唯一标识符。(继承自 AsyncCompletedEventArgs) | 
| Voice | 获取新语言的 VoiceInfo 对象。 | 
方法
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| RaiseExceptionIfNecessary() | 如果异步操作失败,则引发用户提供的异常。(继承自 AsyncCompletedEventArgs) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) |