SystemSound.Play Method ()

 
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.

Plays the system sound type.

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

public void Play()

The Play method plays the sound asynchronously.

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

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

.NET Framework
Available since 2.0
Return to top
Show: