SystemSounds.Beep Proprietà

Definizione

Ottiene il suono associato all'evento del Beep programma nello schema audio di Windows corrente.

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

Valore della proprietà

Oggetto SystemSound associato all'evento del Beep programma nello schema audio di Windows corrente.

Esempio

Nell'esempio di codice seguente viene illustrato l'uso della Beep proprietà .

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

Commenti

In Windows Server 2022 l'attività Microsoft\Windows\Multimedia\SystemSoundsService in Utilità di pianificazione è disabilitata. Sia questa attività che il servizio audio Windows devono essere abilitati per il corretto funzionamento di SystemSounds.Beep.Play().

Si applica a

Vedi anche