InstalledVoice.Enabled 屬性

定義

取得或設定語音是否可用來產生語音。

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

屬性值

傳回 bool,表示這個語音的已啟用狀態。

備註

屬性的值 Enabled 預設為 true 。 當應用程式呼叫 GetInstalledVoices 時,方法會確認它在登錄中找到的每個語音都符合特定最低準則。 對於驗證失敗的任何語音, GetInstalledVoices 將其 Enabled 屬性設定為 false 。 應用程式無法選取其屬性為 falseEnabled 語音。 一般而言,應用程式不會設定語音的 Enabled 屬性。

適用於

另請參閱