SystemSound.Play 方法

定義

播放系統音效類型。

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

範例

下列程式代碼範例示範 如何使用 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()

備註

方法會 Play 以異步方式播放音效。

適用於

另請參閱