Share via


DisplayTarget.IsSame(DisplayTarget) 方法

定义

通过比较 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

适用于