Język

SystemSounds.Beep Właściwość

Definicja

Pobiera dźwięk skojarzony ze zdarzeniem Beep programu w bieżącym schemacie dźwiękowym systemu Windows.

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

Wartość właściwości

Element SystemSound skojarzony ze zdarzeniem Beep programu w bieżącym schemacie dźwiękowym systemu Windows.

Przykłady

W poniższym przykładzie kodu pokazano użycie Beep właściwości .

// 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()

Uwagi

Na Windows Server 2022 zadanie Microsoft\Windows\Multimedia\SystemSoundsService w harmonogramie zadań jest wyłączone. Zarówno to zadanie, jak i usługa Windows Audio muszą być włączone, aby SystemSounds.Beep.Play() działać poprawnie.

Dotyczy

Zobacz też