Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Overloads Shared Function ChangeType( _ ByVal value As Object, _ ByVal toType As Type, _ ByVal cultureInfo As CultureInfo _ ) As Object |
Visual Basic (Usage) | ![]() |
---|---|
Dim value As Object Dim toType As Type Dim cultureInfo As CultureInfo Dim value As Object value = Converter.ChangeType(value, toType, cultureInfo) |
C# | |
---|---|
[Extension()] public static object ChangeType( object value, Type toType, CultureInfo cultureInfo ) |
C++/CLI | |
---|---|
[Extension()] public: static Object^ ChangeType( Object^ value, Type^ toType, CultureInfo^ cultureInfo ) |
Parameters
- value
- toType
- cultureInfo
Target Platforms: 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