共用方式為


DisplayTarget.IsSame(DisplayTarget) 方法

定義

藉由比較 AdapterAdapterRelativeId 屬性,判斷此目標物件是否參考與另一個目標物件相同的基礎硬體目標。 由於每次呼叫GetCurrentTargets時都會建立新的DisplayTarget物件,因此此方法可用來比對先前探索到的目標與新建立的目標。

public:
 virtual bool IsSame(DisplayTarget ^ otherTarget) = IsSame;
bool IsSame(DisplayTarget const& otherTarget);
public bool IsSame(DisplayTarget otherTarget);
function isSame(otherTarget)
Public Function IsSame (otherTarget As DisplayTarget) As Boolean

參數

otherTarget
DisplayTarget

傳回

Boolean

bool

適用於