DisplayManager.TryAcquireTargetsAndCreateSubstate 方法

定义

尝试获取 DisplayTarget 对象集合的独占所有权,并仅为传递给此方法的目标划分给定 DisplayState 的子集。 可以修改和应用生成的状态。

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

参数

existingState
DisplayState

一个现有的 DisplayState 对象,用于划分路径子集以创建新的 DisplayState 结果。

targets

IIterable<DisplayTarget>

IEnumerable<DisplayTarget>

将尝试获取其所有权的 DisplayTarget 对象的集合。

返回

DisplayManagerResultWithState 值。

适用于