IConvertible. To Type(Type, IFormatProvider) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The desired type.
An IFormatProvider implementation that supplies culture-specific information about the format of the returned value.
An object of the specified type, with a value that is equivalent to the value of this
The requested type conversion is not supported.
This member is an explicit interface member implementation. It can be used only when the Boolean instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ChangeType method.