DisplayStateApplyOptions Enum

Definition

Defines constants that specify options for applying a DisplayState to the system.

This enumeration supports a bitwise combination of its member values.

public enum class DisplayStateApplyOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
enum class DisplayStateApplyOptions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
public enum DisplayStateApplyOptions
var value = Windows.Devices.Display.Core.DisplayStateApplyOptions.none
Public Enum DisplayStateApplyOptions
Inheritance
DisplayStateApplyOptions
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Fields

FailIfStateChanged 1

Indicates that the apply operation should fail with SystemStateChanged if the system display state has changed since the DisplayState object was created. This is useful for improving reliability of an apply operation because, if it fails for this reason, then it's often better to just redo the entire operation in case the system state change resulted in different availability of modes or monitors.

ForceModeEnumeration 4

Indicates that all mode list caches should be regenerated by the system.

ForceReapply 2

Indicates that all modes should be re-applied to all display drivers, even if they haven't changed.

None 0

Indicates no option.

Applies to