Share via


CompositionPropertySet.TryGetVector2(String, Vector2) Method

Definition

Retrieves the specified Vector2 property value.

public:
 virtual CompositionGetValueStatus TryGetVector2(Platform::String ^ propertyName, [Out] float2 & value) = TryGetVector2;
CompositionGetValueStatus TryGetVector2(winrt::hstring const& propertyName, [Out] float2 & value);
public CompositionGetValueStatus TryGetVector2(string propertyName, out Vector2 value);
Public Function TryGetVector2 (propertyName As String, ByRef value As Vector2) As CompositionGetValueStatus

Parameters

propertyName
String

Platform::String

winrt::hstring

The name of the property to retrieve.

value
Vector2

float2

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

Returns

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

Applies to