Jaa


IValueConverter.ConvertBack(Object, TypeName, Object, String) Method

Definition

Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings.

public:
 Platform::Object ^ ConvertBack(Platform::Object ^ value, TypeName targetType, Platform::Object ^ parameter, Platform::String ^ language);
IInspectable ConvertBack(IInspectable const& value, TypeName const& targetType, IInspectable const& parameter, winrt::hstring const& language);
public object ConvertBack(object value, System.Type targetType, object parameter, string language);
function convertBack(value, targetType, parameter, language)
Public Function ConvertBack (value As Object, targetType As Type, parameter As Object, language As String) As Object

Parameters

value
Object

Platform::Object

IInspectable

The target data being passed to the source.

targetType
TypeName Type

The type of the target property, as a type reference (System.Type for Microsoft .NET, a TypeName helper struct for Visual C++ component extensions (C++/CX)).

parameter
Object

Platform::Object

IInspectable

An optional parameter to be used in the converter logic.

language
String

Platform::String

winrt::hstring

The language of the conversion.

Returns

Object

Platform::Object

IInspectable

The value to be passed to the source object.

Remarks

If you don't use a converter for TwoWay bindings it's acceptable to leave ConvertBack unimplemented (uses the template default from Visual Studio where it returns a NotImplementedException).

Applies to

See also