DisplayManager.TryAcquireTargetsAndCreateSubstate 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 acquire exclusive ownership of a collection of DisplayTarget objects, and carves out a subset of a given DisplayState for only the targets passed to this method. The resulting state can be modified and applied.
public:
virtual DisplayManagerResultWithState ^ TryAcquireTargetsAndCreateSubstate(DisplayState ^ existingState, IIterable<DisplayTarget ^> ^ targets) = TryAcquireTargetsAndCreateSubstate;
DisplayManagerResultWithState TryAcquireTargetsAndCreateSubstate(DisplayState const& existingState, IIterable<DisplayTarget> const& targets);
public DisplayManagerResultWithState TryAcquireTargetsAndCreateSubstate(DisplayState existingState, IEnumerable<DisplayTarget> targets);
function tryAcquireTargetsAndCreateSubstate(existingState, targets)
Public Function TryAcquireTargetsAndCreateSubstate (existingState As DisplayState, targets As IEnumerable(Of DisplayTarget)) As DisplayManagerResultWithState
Parameters
- existingState
- DisplayState
An existing DisplayState object to carve out a subset of paths to create the new DisplayState result.
- targets
A collection of DisplayTarget objects whose ownership will be attempted to be acquired.
Returns
A DisplayManagerResultWithState value.