PerceptionControlSession.TrySetPropertyAsync(String, Object) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.
public:
virtual IAsyncOperation<PerceptionFrameSourcePropertyChangeResult ^> ^ TrySetPropertyAsync(Platform::String ^ name, Platform::Object ^ value) = TrySetPropertyAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(winrt::hstring const& name, IInspectable const& value);
/// [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")]
IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(winrt::hstring const& name, IInspectable const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(string name, object value);
[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);
function trySetPropertyAsync(name, value)
Public Function TrySetPropertyAsync (name As String, value As Object) As IAsyncOperation(Of PerceptionFrameSourcePropertyChangeResult)
- name
-
String
Platform::String
winrt::hstring
Nom de la propriété à changer.
- value
-
Object
Platform::Object
IInspectable
Nouvelle valeur de la propriété.
Cette méthode retourne de manière asynchrone le résultat de la demande de modification de propriété.
- Attributs
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 |