Share via


PerceptionDepthFrameReader.TryReadLatestFrame Method

Definition

Attempts to read the most recent frame that is available to this depth frame reader.

public:
 virtual PerceptionDepthFrame ^ TryReadLatestFrame() = TryReadLatestFrame;
PerceptionDepthFrame TryReadLatestFrame();
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameReader may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
PerceptionDepthFrame TryReadLatestFrame();
public PerceptionDepthFrame TryReadLatestFrame();
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameReader may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public PerceptionDepthFrame TryReadLatestFrame();
function tryReadLatestFrame()
Public Function TryReadLatestFrame () As PerceptionDepthFrame

Returns

If the attempt was successful, this method returns the most recent frame that is available to this depth frame reader. If the attempt was not successful, this method returns null.

Attributes

Applies to