DisplayState.TryApply(DisplayStateApplyOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- options
- DisplayStateApplyOptions
The DisplayStateApplyOptions to use.
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.