Redigeeri

Jagamisviis:


Enum.IConvertible.ToType(Type, IFormatProvider) Method

Definition

Converts the current value to a specified type based on the underlying type.

 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 convert to.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The converted value.

Implements

Remarks

Uses Convert to perform the conversion.

Applies to