Dela via


MediaCommandEnablingRule Enum

Definition

Specifies a rule for enabling a System Media Transport Controls command.

public enum class MediaCommandEnablingRule
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class MediaCommandEnablingRule
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum MediaCommandEnablingRule
var value = Windows.Media.Playback.MediaCommandEnablingRule.auto
Public Enum MediaCommandEnablingRule
Inheritance
MediaCommandEnablingRule
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Fields

Name Value Description
Auto 0

The system dynamically determines whether the command is enabled.

Always 1

The command is always enabled.

Never 2

The command is never enabled.

Remarks

Set the EnablingRule property of a MediaPlaybackCommandManagerCommandBehavior object to specify the enabling rule for a System Media Transport Controls command that is managed by a MediaPlaybackCommandManager.

Applies to