SystemSound.Play Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Spelar upp systemljudtypen.
public:
void Play();
public void Play();
member this.Play : unit -> unit
Public Sub Play ()
Exempel
Följande kodexempel visar hur egenskapen används Asterisk .
// Plays the sound associated with the Asterisk system event.
SystemSounds::Asterisk->Play();
// Plays the sound associated with the Asterisk system event.
SystemSounds.Asterisk.Play();
' Plays the sound associated with the Asterisk system event.
SystemSounds.Asterisk.Play()
Kommentarer
Metoden Play spelar upp ljudet asynkront.