PerceptionControlSession.TrySetPropertyAsync(String, Object) Méthode

Définition

Crée une demande de modification de propriété. Cette demande est traitée de manière asynchrone et son succès n’est pas garanti. Le résultat de la modification de propriété doit être inspecté pour déterminer si la modification de propriété a été acceptée et, si ce n’est pas le cas, la raison pour laquelle la modification de propriété n’a pas été acceptée.

C#
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(string name, object value);
C#
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionControlSession may be unavailable after Windows Creator Update.  Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(string name, object value);

Paramètres

name
String

Nom de la propriété à changer.

value
Object

Nouvelle valeur de la propriété.

Retours

Cette méthode retourne de manière asynchrone le résultat de la demande de modification de propriété.

Attributs

S’applique à

Produit Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100