.NET Framework Class Library
Int32IConvertibleToType Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For a description of this member, see IConvertibleToType.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)
Private Function ToType ( _
	type As [%$TOPIC/bb350521_en-us_VS_110_2_0_0_0_0%], _
	provider As [%$TOPIC/bb350521_en-us_VS_110_2_0_0_0_1%] _
) As [%$TOPIC/bb350521_en-us_VS_110_2_0_0_0_2%] Implements [%$TOPIC/bb350521_en-us_VS_110_2_0_0_0_3%].[%$TOPIC/bb350521_en-us_VS_110_2_0_0_0_4%]
[%$TOPIC/bb350521_en-us_VS_110_2_0_1_0_0%] [%$TOPIC/bb350521_en-us_VS_110_2_0_1_0_1%].[%$TOPIC/bb350521_en-us_VS_110_2_0_1_0_2%](
	[%$TOPIC/bb350521_en-us_VS_110_2_0_1_0_3%] type,
	[%$TOPIC/bb350521_en-us_VS_110_2_0_1_0_4%] provider
virtual [%$TOPIC/bb350521_en-us_VS_110_2_0_2_0_0%]^ ToType(
	[%$TOPIC/bb350521_en-us_VS_110_2_0_2_0_1%]^ type, 
	[%$TOPIC/bb350521_en-us_VS_110_2_0_2_0_2%]^ provider
) sealed = [%$TOPIC/bb350521_en-us_VS_110_2_0_2_0_3%]::[%$TOPIC/bb350521_en-us_VS_110_2_0_2_0_4%]
private abstract ToType : 
        type:[%$TOPIC/bb350521_en-us_VS_110_2_0_3_0_0%] * 
        provider:[%$TOPIC/bb350521_en-us_VS_110_2_0_3_0_1%] -> [%$TOPIC/bb350521_en-us_VS_110_2_0_3_0_2%]  
private override ToType : 
        type:[%$TOPIC/bb350521_en-us_VS_110_2_0_3_0_3%] * 
        provider:[%$TOPIC/bb350521_en-us_VS_110_2_0_3_0_4%] -> [%$TOPIC/bb350521_en-us_VS_110_2_0_3_0_5%]
JScript does not support explicit interface implementations.


Type: SystemType

The type to which to convert this Int32 value.

Type: SystemIFormatProvider

An object that provides information about the format of the returned value.

Return Value

Type: SystemObject
The value of the current instance, converted to type.


IConvertibleToType(Type, IFormatProvider)

This member is an explicit interface member implementation. It can be used only when the Int32 instance is cast to an IConvertible interface. The recommended alternative is to call the static (Shared in Visual Basic) ConvertChangeType method instead.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8