Share via


DisplayTarget.IsSame(DisplayTarget) Method

Definition

Determines whether this target object refers to the same underlying hardware target as another target object, by comparing the Adapter and the AdapterRelativeId properties. Since new DisplayTarget objects are created on each call to GetCurrentTargets, this method can be used to match previously discovered targets to newly created targets.

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

Parameters

otherTarget
DisplayTarget

Returns

Boolean

bool

Applies to