VoiceChangeEventArgs VoiceChangeEventArgs VoiceChangeEventArgs VoiceChangeEventArgs Class


VoiceChange 事件傳回資料。Returns data from the VoiceChange event.

public ref class VoiceChangeEventArgs : System::Speech::Synthesis::PromptEventArgs
public class VoiceChangeEventArgs : System.Speech.Synthesis.PromptEventArgs
type VoiceChangeEventArgs = class
    inherit PromptEventArgs
Public Class VoiceChangeEventArgs
Inherits PromptEventArgs


當物件引發VoiceChangeEventArgs 事件VoiceChange時, 會建立的實例。 SpeechSynthesizerAn instance of VoiceChangeEventArgs is created when the SpeechSynthesizer object raises the VoiceChange event. 若要取得新Voice的身分識別, 請存取事件之處理常式中的Voice屬性。To obtain the identity of the new Voice, access the Voice property in the handler for the event.

您可以使用的任何SpeechSynthesizer StartVoice PromptBuilder方法或SpeechSynthesizerSelectVoice或方法,變更使用中的語音。SelectVoiceByHintsYou can change the voice in use by the SpeechSynthesizer with any of the PromptBuilder's StartVoice methods or the SpeechSynthesizer's SelectVoice or SelectVoiceByHints methods.


Cancelled Cancelled Cancelled Cancelled

取得值,指出非同步作業是否已取消。Gets a value indicating whether an asynchronous operation has been canceled.

(Inherited from AsyncCompletedEventArgs)
Error Error Error Error

取得值,指出非同步作業期間是否發生錯誤。Gets a value indicating which error occurred during an asynchronous operation.

(Inherited from AsyncCompletedEventArgs)
Prompt Prompt Prompt Prompt

取得與事件相關聯的提示。Gets the prompt associated with the event.

(Inherited from PromptEventArgs)
UserState UserState UserState UserState

取得非同步工作的唯一識別項。Gets the unique identifier for the asynchronous task.

(Inherited from AsyncCompletedEventArgs)
Voice Voice Voice Voice

取得新語音的 VoiceInfo 物件。Gets the VoiceInfo object of the new voice.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
RaiseExceptionIfNecessary() RaiseExceptionIfNecessary() RaiseExceptionIfNecessary() RaiseExceptionIfNecessary()

如果非同步作業失敗,引發使用者提供的例外狀況。Raises a user-supplied exception if an asynchronous operation failed.

(Inherited from AsyncCompletedEventArgs)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)