Version

ChangeType Method

Returns an Object with the specified Type and whose value is equivalent to the specified object.
Syntax
'Declaration
 
Public Shared Function ChangeType( _
   ByVal type As Type, _
   ByVal value As Object _
) As Object
public static object ChangeType( 
   Type type,
   object value
)

Parameters

type
value

Return Value

Value as the specified type, or null if the conversion cannot be performed.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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