MediaPlayer.Pause Method ()

 

Pauses media playback.

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

public void Pause()

Calling Pause when a player has an associated Clock will throw an InvalidOperationException. Pause cannot be called while the timing engine drives media playback.

.NET Framework
Available since 3.0
Return to top
Show: