DisplayManager.TryAcquireTargetsAndReadCurrentState 方法

定义

尝试获取 DisplayTarget 对象集合的独占所有权,并创建使用所提供目标的当前状态填充的可修改 DisplayState

public:
 virtual DisplayManagerResultWithState ^ TryAcquireTargetsAndReadCurrentState(IIterable<DisplayTarget ^> ^ targets) = TryAcquireTargetsAndReadCurrentState;
DisplayManagerResultWithState TryAcquireTargetsAndReadCurrentState(IIterable<DisplayTarget> const& targets);
public DisplayManagerResultWithState TryAcquireTargetsAndReadCurrentState(IEnumerable<DisplayTarget> targets);
function tryAcquireTargetsAndReadCurrentState(targets)
Public Function TryAcquireTargetsAndReadCurrentState (targets As IEnumerable(Of DisplayTarget)) As DisplayManagerResultWithState

参数

targets

IIterable<DisplayTarget>

IEnumerable<DisplayTarget>

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

返回

DisplayManagerResultWithState 值。

适用于