PerceptionColorFrameSource.TrySetVideoProfileAsync(PerceptionControlSession, PerceptionVideoProfile) PerceptionColorFrameSource.TrySetVideoProfileAsync(PerceptionControlSession, PerceptionVideoProfile) PerceptionColorFrameSource.TrySetVideoProfileAsync(PerceptionControlSession, PerceptionVideoProfile) PerceptionColorFrameSource.TrySetVideoProfileAsync(PerceptionControlSession, PerceptionVideoProfile) PerceptionColorFrameSource.TrySetVideoProfileAsync(PerceptionControlSession, PerceptionVideoProfile) Method

Definition

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

public : IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession controlSession, PerceptionVideoProfile profile)
IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession controlSession, PerceptionVideoProfile profile) const;
public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession controlSession, PerceptionVideoProfile profile)
Public Function TrySetVideoProfileAsync(controlSession As PerceptionControlSession, profile As PerceptionVideoProfile) As IAsyncOperation(Of PerceptionFrameSourcePropertyChangeResult)
Windows.Devices.Perception.PerceptionColorFrameSource.trySetVideoProfileAsync(controlSession, profile).done( /* Your success and error handlers */ );

Parameters

controlSession
PerceptionControlSession PerceptionControlSession PerceptionControlSession

A PerceptionControlSession representing active control of this frame source.

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 result that indicates success.