ElementSoundPlayerState 列舉

定義

定義常數,指定 XAML 控制項是否播放音效。

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum ElementSoundPlayerState
繼承
ElementSoundPlayerState
屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

欄位

名稱 Description
Auto 0

平臺會判斷是否播放音效。

Off 1

音效永遠不會在任何平臺上播放。

On 2

音效會在所有平臺上播放。

備註

ElementSoundPlayer.State屬性會使用此列舉。

如需詳細資訊,請參閱 UWP 應用程式中的音效

適用於

產品 版本
WinRT Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

另請參閱