Share via


DisplayState.TryApply(DisplayStateApplyOptions) Method

Definition

Attempts to atomically apply this DisplayState to the relevant hardware. Implicitly, this involves "functionalizing" all paths to determine the best modes matching all DisplayPath and DisplayView properties.

public:
 virtual DisplayStateOperationResult ^ TryApply(DisplayStateApplyOptions options) = TryApply;
DisplayStateOperationResult TryApply(DisplayStateApplyOptions const& options);
public DisplayStateOperationResult TryApply(DisplayStateApplyOptions options);
function tryApply(options)
Public Function TryApply (options As DisplayStateApplyOptions) As DisplayStateOperationResult

Parameters

Returns

A DisplayStateOperationResult value detailing the success or failure of the operation.

Remarks

After applying this DisplayState, no properties are updated on this object or any of the DisplayPath nor DisplayView objects. You can use DisplayManager.TryAcquireTargetsAndReadCurrentState to read the state that was set by the TryApply operation.

Applies to