PerceptionDepthFrameSource.IsCorrelatedWith(String) 方法

定义

检查深度帧源是否与目标实体相关联。 如果结果为 true,则可以检索转换矩阵以将坐标基础从此深度帧源更改为实体,反之亦然。

public:
 virtual bool IsCorrelatedWith(Platform::String ^ targetId) = IsCorrelatedWith;
bool IsCorrelatedWith(winrt::hstring const& targetId);
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
bool IsCorrelatedWith(winrt::hstring const& targetId);
public bool IsCorrelatedWith(string targetId);
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public bool IsCorrelatedWith(string targetId);
function isCorrelatedWith(targetId)
Public Function IsCorrelatedWith (targetId As String) As Boolean

参数

targetId
String

Platform::String

winrt::hstring

目标实体的唯一 ID。

返回

Boolean

bool

如果存在相关性,则为 True,否则为 false。

属性

适用于