System.Media.SystemSounds Class

Retrieves sounds associated with a set of Windows operating system sound-event types. This class cannot be inherited.

See Also: SystemSounds Members

Syntax

public sealed class SystemSounds

Remarks

The System.Media.SystemSounds class provides methods for retrieving the sounds associated with a set of operating system sound-event types for the current user. The sounds associated with each type of operating system sound event can be configured in Windows Control Panel.

System.Media.SystemSounds provides static methods to access the sounds associated with the SystemSounds.Asterisk, SystemSounds.Beep, SystemSounds.Exclamation, SystemSounds.Hand and SystemSounds.Question sound events. Each property returns a System.Media.SystemSound that can be used to play the sound.

Requirements

Namespace: System.Media
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0