SystemSounds.Beep 屬性

定義

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

public:
 static property System::Media::SystemSound ^ Beep { System::Media::SystemSound ^ get(); };
public static System.Media.SystemSound Beep { get; }
member this.Beep : System.Media.SystemSound
Public Shared ReadOnly Property Beep As SystemSound

屬性值

SystemSound

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

範例

下列程式碼範例示範屬性的用法 BeepThe following code example demonstrates the use of the Beep property.

// Plays the sound associated with the Beep system event.
SystemSounds::Beep->Play();
// Plays the sound associated with the Beep system event.
SystemSounds.Beep.Play();
' Plays the sound associated with the Beep system event.
SystemSounds.Beep.Play()

適用於

另請參閱