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 异步播放声音。

适用于

另请参阅