SystemSounds 類別

定義

擷取與一組 Windows 作業系統音效事件類型關聯的音效。Retrieves sounds associated with a set of Windows operating system sound-event types. 此類別無法獲得繼承。This class cannot be inherited.

public ref class SystemSounds abstract sealed
public ref class SystemSounds sealed
public static class SystemSounds
public sealed class SystemSounds
type SystemSounds = class
Public Class SystemSounds
Public NotInheritable Class SystemSounds
繼承
SystemSounds

備註

SystemSounds類別會提供方法,以取得與目前使用者的一組作業系統音效事件種類相關聯的聲音。The SystemSounds class provides methods for retrieving the sounds associated with a set of operating system sound-event types for the current user. 可以在 Windows [控制台] 中設定與每種作業系統音效事件相關聯的聲音。The sounds associated with each type of operating system sound event can be configured in Windows Control Panel.

SystemSounds提供靜態方法,以存取與 AsteriskBeepExclamation HandQuestion 音效事件相關聯的聲音。SystemSounds provides static methods to access the sounds associated with the Asterisk, Beep, Exclamation, Hand and Question sound events. 每個屬性 SystemSound 都會傳回可用於播放音效的。Each property returns a SystemSound that can be used to play the sound.

屬性

Asterisk

取得目前 Windows 音效配置中,與 Asterisk 程式事件相關的音效。Gets the sound associated with the Asterisk program event in the current Windows sound scheme.

Beep

取得目前 Windows 音效配置中,與 Beep 程式事件相關的音效。Gets the sound associated with the Beep program event in the current Windows sound scheme.

Exclamation

取得目前 Windows 音效配置中,與 Exclamation 程式事件相關的音效。Gets the sound associated with the Exclamation program event in the current Windows sound scheme.

Hand

取得目前 Windows 音效配置中,與 Hand 程式事件相關的音效。Gets the sound associated with the Hand program event in the current Windows sound scheme.

Question

取得目前 Windows 音效配置中,與 Question 程式事件相關的音效。Gets the sound associated with the Question program event in the current Windows sound scheme.

適用於

另請參閱