CompositionPropertySet.TryGetBoolean(String, Boolean) Method

Definition

Retrieves the specified boolean property value.

CompositionGetValueStatus TryGetBoolean(winrt::hstring const & propertyName, [Out] bool & value);
public CompositionGetValueStatus TryGetBoolean(string propertyName, out bool value);
Public Function TryGetBoolean (propertyName As String, ByRef value As Boolean) As CompositionGetValueStatus

Parameters

propertyName
String

The name of the property to retrieve.

value
Boolean

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

Returns

CompositionGetValueStatus

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

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Applies to