語言

SpeakStartedEventArgs 類別

定義

回傳事件通知 SpeakStarted 。

public ref class SpeakStartedEventArgs : System::Speech::Synthesis::PromptEventArgs
public class SpeakStartedEventArgs : System.Speech.Synthesis.PromptEventArgs
type SpeakStartedEventArgs = class
    inherit PromptEventArgs
Public Class SpeakStartedEventArgs
Inherits PromptEventArgs
繼承

備註

當SpeakStartedEventArgs物件提出事件時SpeechSynthesizer,會產生一個SpeakStarted實例。 SpeechSynthesizer當事件開始用任一SpeakStarted、、SpeakSpeakAsync或SpeakSsml方法說出提示詞時,事件就會被SpeakSsmlAsync提升。

該 SpeakStartedEventArgs 類別沒有屬性,且不會回傳事件資料 SpeakStarted 。 此設計旨在讓應用程式作者能夠為事件撰寫事件處理程序 SpeakStarted 。

屬性

名稱 Description
Cancelled

會得到一個值,表示非同步操作是否已被取消。

(繼承來源 AsyncCompletedEventArgs)
Error

會獲得一個值,表示非同步操作中發生了哪個錯誤。

(繼承來源 AsyncCompletedEventArgs)
Prompt

會收到與事件相關的提示。

(繼承來源 PromptEventArgs)
UserState

取得非同步任務的唯一識別碼。

(繼承來源 AsyncCompletedEventArgs)

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
RaiseExceptionIfNecessary()

若非同步操作失敗,則會觸發使用者提供的例外。

(繼承來源 AsyncCompletedEventArgs)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於