SystemSounds.Beep Egenskap

Definition

Hämtar ljudet som är associerat med programhändelsen Beep i det aktuella Windows ljudschemat.

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

Egenskapsvärde

En SystemSound associerad med programhändelsen Beep i det aktuella Windows ljudschemat.

Exempel

Följande kodexempel visar hur egenskapen används Beep .

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

Kommentarer

På Windows Server 2022 inaktiveras aktiviteten Microsoft\Windows\Multimedia\SystemSoundsService i Schemaläggaren. Både den här uppgiften och tjänsten Windows Audio måste aktiveras för att SystemSounds.Beep.Play() ska fungera korrekt.

Gäller för

Se även