SoundPlayer.Stop Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Arrête la lecture du son si la lecture se produit.
public:
void Stop();
public void Stop();
member this.Stop : unit -> unit
Public Sub Stop ()
Exemples
L’exemple de code suivant illustre l’utilisation de la Stop méthode pour arrêter un fichier .wav actuellement en cours de lecture. Cet exemple de code fait partie d’un exemple plus grand fourni pour la SoundPlayer classe.
player->Stop();
ReportStatus( "Stopped by user." );
player.Stop();
ReportStatus("Stopped by user.");
player.Stop()
ReportStatus("Stopped by user.")