IValueConverter.ConvertBack(Object, TypeName, Object, String) IValueConverter.ConvertBack(Object, TypeName, Object, String) IValueConverter.ConvertBack(Object, TypeName, Object, String) 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)
winrt::Windows::Foundation::IInspectable ConvertBack(winrt::Windows::Foundation::IInspectable value, TypeName targetType, winrt::Windows::Foundation::IInspectable parameter, winrt::hstring language) const;
public object ConvertBack(Object value, Type targetType, Object parameter, String language)
Public Function ConvertBack(value As Object, targetType As Type, parameter As Object, language As String) As object

Parameters

value
Object Object

The target data being passed to the source.

targetType
Type 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 Object

An optional parameter to be used in the converter logic.

language
String String

The language of the conversion.

Returns

object object

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).

See also