Int16.IConvertible.ToType(Type, IFormatProvider) Metoda
Definicja
Aby uzyskać opis tego elementu członkowskiego, zobacz ToType(Type, IFormatProvider) .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
Parametry
- type
- Type
Typ, do którego ma zostać przekonwertowana ta Int16 wartość.The type to which to convert this Int16 value.
- provider
- IFormatProvider
IFormatProviderImplementacja, która dostarcza informacje o formacie zwracanej wartości.An IFormatProvider implementation that supplies information about the format of the returned value.
Zwraca
Wartość bieżącego wystąpienia, konwertowana na type
.The value of the current instance, converted to type
.
Implementuje
Uwagi
Ten element jest jawną implementacją członków.This member is an explicit interface member implementation. Może być używana tylko wtedy, gdy Int16 wystąpienie jest rzutowane do IConvertible interfejsu.It can be used only when the Int16 instance is cast to an IConvertible interface. Zalecaną alternatywą jest wywołanie static
metody ( Shared
w Visual Basic) Convert.ChangeType .The recommended alternative is to call the static
(Shared
in Visual Basic) Convert.ChangeType method.