Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IConvertible.ToType Method

Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.

The IConvertible type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Function ToType( _
   ByVal conversionType As Type, _
   ByVal provider As IFormatProvider _
) As Object
object ToType(
   Type conversionType,
 IFormatProvider provider
Object* ToType(
   Type* conversionType,
 IFormatProvider* provider
function ToType(
   conversionType : Type,
 provider : IFormatProvider
) : Object;


The Type to which the value of this instance is converted.
An IFormatProvider interface implementation that supplies culture-specific formatting information.

Return Value

An Object instance of type conversionType whose value is equivalent to the value of this instance.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IConvertible Interface | IConvertible Members | System Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.