共用方式為


DisplayManager.TryAcquireTargetsAndCreateEmptyState 方法

定義

嘗試取得 DisplayTarget 物件集合的獨佔擁有權,並建立空的可修改 DisplayState 物件,其支援將這些目標連接路徑。

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

參數

targets

IIterable<DisplayTarget>

IEnumerable<DisplayTarget>

DisplayTarget物件的集合,其擁有權將會嘗試取得。

傳回

DisplayManagerResultWithState值。

適用於