Share via


PerceptionDepthFrameSource.AcquireControlSession Method

Definition

Attempts to acquire Controller Mode on the depth frame source.

public:
 virtual PerceptionControlSession ^ AcquireControlSession() = AcquireControlSession;
PerceptionControlSession AcquireControlSession();
/// [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")]
PerceptionControlSession AcquireControlSession();
public PerceptionControlSession AcquireControlSession();
[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 PerceptionControlSession AcquireControlSession();
function acquireControlSession()
Public Function AcquireControlSession () As PerceptionControlSession

Returns

If the attempt is successful, this returns a PerceptionControlSession object that can be used to control properties of the depth frame source. Otherwise, this returns null.

Attributes

Applies to