SystemSounds.Beep Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the sound associated with the Beep program event in the current Windows sound scheme.

Namespace:   System.Media
Assembly:  System (in System.dll)

public static SystemSound Beep { get; }

Property Value

Type: System.Media.SystemSound

A SystemSound associated with the Beep program event in the current Windows sound scheme.

The following code example demonstrates the use of the Beep property.

// Plays the sound associated with the Beep system event.
SystemSounds.Beep.Play();

.NET Framework
Available since 2.0
Return to top
Show: