DevForce Help Reference
ConvertType Method (ReflectionExtensions)


Try and convert a value to the specified conversion type.
Syntax
'Declaration
 
Public Shared Function ConvertType( _
   ByVal value As Object, _
   ByVal conversionType As Type, _
   ByVal throwIfError As Boolean _
) As Object
'Usage
 
Dim value As Object
Dim conversionType As Type
Dim throwIfError As Boolean
Dim value As Object
 
value = ReflectionExtensions.ConvertType(value, conversionType, throwIfError)
public static object ConvertType( 
   object value,
   Type conversionType,
   bool throwIfError
)

Parameters

value
conversionType
throwIfError
Requirements

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

See Also

Reference

ReflectionExtensions Class
ReflectionExtensions Members

Send Feedback