Share via


CompositionPropertySet.TryGetBoolean(String, Boolean) Method

Definition

Retrieves the specified boolean property value.

public:
 virtual CompositionGetValueStatus TryGetBoolean(Platform::String ^ propertyName, [Out] bool & value) = TryGetBoolean;
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

Platform::String

winrt::hstring

The name of the property to retrieve.

value
Boolean

bool

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.

Windows requirements

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

Applies to