DisplayTarget.IsSame(DisplayTarget) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
藉由比較 Adapter 和 AdapterRelativeId 屬性,判斷此目標物件是否參考與另一個目標物件相同的基礎硬體目標。 由於每次呼叫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