Bewerken

Delen via


Enum.IConvertible.ToInt16(IFormatProvider) Method

Definition

Converts the current value to a 16-bit signed integer based on the underlying type.

 virtual short System.IConvertible.ToInt16(IFormatProvider ^ provider) = IConvertible::ToInt16;
short IConvertible.ToInt16 (IFormatProvider provider);
abstract member System.IConvertible.ToInt16 : IFormatProvider -> int16
override this.System.IConvertible.ToInt16 : IFormatProvider -> int16
Function ToInt16 (provider As IFormatProvider) As Short Implements IConvertible.ToInt16

Parameters

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The converted value.

Implements

Remarks

Uses Convert to perform the conversion.

Applies to