Share via


DisplayManager.TryAcquireTargetsAndCreateSubstate Method

Definition

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

IIterable<DisplayTarget>

IEnumerable<DisplayTarget>

A collection of DisplayTarget objects whose ownership will be attempted to be acquired.

Returns

A DisplayManagerResultWithState value.

Applies to