- value
- The object to change.
- to
- The type of change the object to.
Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Shared Function ChangeType( _ ByVal value As Object, _ ByVal to As Type _ ) As Object |
Visual Basic (Usage) | Copy Code |
---|---|
Dim value As Object Dim to As Type Dim value As Object value = GeneralExtensions.ChangeType(value, to) |
Parameters
- value
- The object to change.
- to
- The type of change the object to.
Return Value
The new object changed to the specified type.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7