SystemSounds.Exclamation 屬性

定義

取得目前 Windows 音效配置中,與 Exclamation 程式事件相關的音效。Gets the sound associated with the Exclamation program event in the current Windows sound scheme.

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

屬性值

SystemSound

目前 Windows 音效配置中,與 Exclamation 程式事件相關的 SystemSoundA SystemSound associated with the Exclamation program event in the current Windows sound scheme.

範例

下列程式碼範例示範屬性的用法 ExclamationThe following code example demonstrates the use of the Exclamation property.

// 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()

適用於

另請參閱