CompositionPropertySet.TryGetBoolean(String, Boolean) CompositionPropertySet.TryGetBoolean(String, Boolean) CompositionPropertySet.TryGetBoolean(String, Boolean) CompositionPropertySet.TryGetBoolean(String, Boolean) Method

Definition

Retrieves the specified boolean property value.

public : CompositionGetValueStatus TryGetBoolean(Platform::String propertyName, bool value)
CompositionGetValueStatus TryGetBoolean(winrt::hstring propertyName, bool const& value) const;
public CompositionGetValueStatus TryGetBoolean(String propertyName, Boolean value)
Public Function TryGetBoolean(propertyName As String, value As Boolean) As CompositionGetValueStatus

Parameters

propertyName
String String

The name of the property to retrieve.

value
Boolean Boolean

If the operation is successful, this parameter will contain the specified boolean property value when the method returns.

Returns

Returns a CompositionGetValueStatus value indicating the outcome of retrieving the key-value pair.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)