Partager via


PerceptionDepthFrameSource.TrySetVideoProfileAsync Méthode

Définition

Tente de définir un profil vidéo sur cette source de trame de profondeur. Nécessite une session de contrôle en mode contrôleur active sur cette source de trame.

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("PerceptionDepthFrameSource 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("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 IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetVideoProfileAsync(PerceptionControlSession controlSession, PerceptionVideoProfile profile);
function trySetVideoProfileAsync(controlSession, profile)
Public Function TrySetVideoProfileAsync (controlSession As PerceptionControlSession, profile As PerceptionVideoProfile) As IAsyncOperation(Of PerceptionFrameSourcePropertyChangeResult)

Paramètres

controlSession
PerceptionControlSession

PerceptionControlSession représentant le contrôle actif de cette source de trame.

profile
PerceptionVideoProfile

Profil vidéo à définir.

Retours

Cette méthode retourne un objet PerceptionFrameSourcePropertyChangeResult de manière asynchrone. Si la session de contrôle était toujours active lorsque le profil vidéo a été défini, et si le profil vidéo est pris en charge et peut être activé, il s’agit d’un résultat indiquant la réussite.

Attributs

S’applique à