SystemSounds SystemSounds SystemSounds SystemSounds Class

定義

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

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

備註

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 提供靜態方法,以存取相關聯的音效AsteriskBeepExclamationHandQuestion聽起來事件。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 Asterisk Asterisk Asterisk

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

Beep Beep Beep Beep

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

Exclamation Exclamation Exclamation Exclamation

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

Hand Hand Hand Hand

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

Question Question Question Question

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

方法

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 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

適用於

另請參閱