SystemSounds.Exclamation 属性

定义

获取与当前 Windows 声音方案中的 Exclamation 程序事件关联的声音。

public:
 static property System::Media::SystemSound ^ Exclamation { System::Media::SystemSound ^ get(); };
public static System.Media.SystemSound Exclamation { get; }
static member Exclamation : System.Media.SystemSound
Public Shared ReadOnly Property Exclamation As SystemSound

属性值

与当前 Windows 声音方案中的 Exclamation 程序事件关联的 SystemSound

示例

下面的代码示例演示如何使用 Exclamation 属性。

// Plays the sound associated with the Exclamation system event.
SystemSounds::Exclamation->Play();
// Plays the sound associated with the Exclamation system event.
SystemSounds.Exclamation.Play();
' Plays the sound associated with the Exclamation system event.
SystemSounds.Exclamation.Play()

适用于

另请参阅