Version

DataBindConvert Method

Converts source value to destination type using specific culture.
Syntax
'Declaration
 
Public Shared Function DataBindConvert( _
   ByVal source As Object, _
   ByVal destinationType As Type, _
   ByVal culture As CultureInfo, _
   ByVal formatString As String, _
   ByVal formatInfo As IFormatProvider, _
   ByRef validConversion As Boolean _
) As Object
public static object DataBindConvert( 
   object source,
   Type destinationType,
   CultureInfo culture,
   string formatString,
   IFormatProvider formatInfo,
   out bool validConversion
)

Parameters

source
Value to convert. Can be null or DBNull.
destinationType
Type to convert to.
culture
Specific culture used for conversion. If null, default culture is used.
formatString
Format string.
formatInfo
Format provider.
validConversion
True if the conversion was valid.

Return Value

Converted value.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also