SoundPlayer::Stop Method ()
.NET Framework (current version)
Stops playback of the sound if playback is occurring.
Assembly: System (in System.dll)
The following code example demonstrates the use of the Stop method to halt a .wav file that is currently playing. This code example is part of a larger example provided for the SoundPlayer class.
UIPermission
for access to native code. Associated enumeration: UIPermissionWindow::SafeSubWindows
.NET Framework
Available since 2.0
Available since 2.0
Show: