Share via


PerceptionInfraredFrameSource.TrySetVideoProfileAsync Method

Definition

Attempts to set a video profile on this infrared frame source. Requires an active Controller Mode control session on this frame source.

public:
 virtual IAsyncOperation<PerceptionFrameSourcePropertyChangeResult ^> ^ TrySetVideoProfileAsync(PerceptionControlSession ^ controlSession, PerceptionVideoProfile ^ profile) = TrySetVideoProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession const& controlSession, PerceptionVideoProfile const& profile);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession const& controlSession, PerceptionVideoProfile const& profile);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession controlSession, PerceptionVideoProfile profile);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession controlSession, PerceptionVideoProfile profile);
function trySetVideoProfileAsync(controlSession, profile)
Public Function TrySetVideoProfileAsync (controlSession As PerceptionControlSession, profile As PerceptionVideoProfile) As IAsyncOperation(Of PerceptionFrameSourcePropertyChangeResult)

Parameters

controlSession
PerceptionControlSession

A PerceptionControlSession representing active control of this frame source.

profile
PerceptionVideoProfile

The video profile to set.

Returns

This method returns an PerceptionFrameSourcePropertyChangeResult object asynchonously. If the control session was still active when the video profile was set, and if the video profile is supported and can be activated, this will be a success result.

Attributes

Applies to