Condividi tramite


PerceptionDepthFrameSource.TrySetVideoProfileAsync Metodo

Definizione

Tenta di impostare un profilo video su questa origine frame di profondità. Richiede una sessione di controllo della modalità controller attiva in questa origine frame.

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)

Parametri

controlSession
PerceptionControlSession

PerceptionControlSession che rappresenta il controllo attivo di questa origine frame.

profile
PerceptionVideoProfile

Profilo video da impostare.

Restituisce

Questo metodo restituisce un oggetto PerceptionFrameSourcePropertyChangeResult in modo asincrono. Se la sessione di controllo è ancora attiva quando è stato impostato il profilo video e se il profilo video è supportato e può essere attivato, questo sarà un risultato che indica l'esito positivo.

Attributi

Si applica a