Performs conversion of linked value to the target type, when there is no
Converter or
StringFormat specified.
'Declaration
<CanBeNullAttribute()>
Protected Shared Function DefaultConvertToTarget( _
ByVal As Object, _
ByVal As Type, _
ByVal As Type _
) As Object
'Usage
Dim value As Object
Dim sourceType As Type
Dim destinationType As Type
Dim value As Object
value = LinkingTarget.DefaultConvertToTarget(value, sourceType, destinationType)
Parameters
- value
- The value to be converted.
The value of this parameter can be null
(Nothing
in Visual Basic).
- sourceType
- The source type.
The value of this parameter cannot be null
(Nothing
in Visual Basic).
- destinationType
- The destinationType.
The value of this parameter cannot be null
(Nothing
in Visual Basic).
Return Value
The converted value.
This method can return null
(Nothing
in Visual Basic).
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also