Szerkesztés

Megosztás a következőn keresztül:


Int32.IConvertible.ToType(Type, IFormatProvider) Method

Definition

For a description of this member, see ToType(Type, IFormatProvider).

 virtual System::Object ^ System.IConvertible.ToType(Type ^ type, IFormatProvider ^ provider) = IConvertible::ToType;
object IConvertible.ToType (Type type, IFormatProvider provider);
abstract member System.IConvertible.ToType : Type * IFormatProvider -> obj
override this.System.IConvertible.ToType : Type * IFormatProvider -> obj
Function ToType (type As Type, provider As IFormatProvider) As Object Implements IConvertible.ToType

Parameters

type
Type

The type to which to convert this Int32 value.

provider
IFormatProvider

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

Returns

The value of the current instance, converted to type.

Implements

Remarks

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) Convert.ChangeType method instead.

Applies to