MediaControl.SoundLevel 属性

定义

注意

Windows 8.1后,MediaControl 可能会更改或不可用。 请改用 SystemMediaTransportControls

获取当前声音级别。

public:
 static property SoundLevel SoundLevel { SoundLevel get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
static SoundLevel SoundLevel();
/// [get: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
static SoundLevel SoundLevel();
public static SoundLevel SoundLevel { [Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))] get; }
public static SoundLevel SoundLevel { [Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")] get; }
var soundLevel = MediaControl.soundLevel;
Public Shared ReadOnly Property SoundLevel As SoundLevel

属性值

当前声音级别。

属性

注解

请注意,应用程序的声音级别仅与其呈现流的状态相关联,而不绑定到其捕获或环回流的状态。

适用于

另请参阅