SoundPlayer.Stop メソッド

定義

再生中の場合は、サウンドの再生を停止します。

public:
 void Stop();
public void Stop();
member this.Stop : unit -> unit
Public Sub Stop ()

次のコード例は、 Stop メソッドを使用して、現在再生中の.wav ファイルを停止する方法を示しています。 このコード例は、 SoundPlayer クラスに提供されるより大きな例の一部です。

player->Stop();
ReportStatus( "Stopped by user." );
player.Stop();
ReportStatus("Stopped by user.");
player.Stop()
ReportStatus("Stopped by user.")

適用対象

こちらもご覧ください