Udostępnij za pośrednictwem


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.

Applies to