SystemSounds.Beep Właściwość

Definicja

Pobiera dźwięk skojarzony ze zdarzeniem Beep programu w bieżącym schemacie dźwięku 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

Skojarzony SystemSound ze zdarzeniem Beep programu w bieżącym schemacie dźwięku systemu Windows.

Przykłady

Poniższy przykład kodu przedstawia 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

W systemie Windows Server 2022 zadanie Microsoft\Windows\Multimedia\SystemSoundsService w harmonogramie zadań jest wyłączone. Zarówno to zadanie, jak i usługa Audio systemu Windows muszą być włączone w SystemSounds.Beep.Play() celu poprawnego działania.

Dotyczy

Zobacz też