SoundPlayer Constructor ()

 

Initializes a new instance of the SoundPlayer class.

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

public:
SoundPlayer()

This constructor initializes a SoundPlayer with no audio source. Until it is configured with an audio source path, the SoundPlayer will play a beep sound when one of its playback methods is called.

.NET Framework
Available since 2.0
Return to top
Show: