Enum.IConvertible.ToUInt16(IFormatProvider) Method

Definition

Important

This API is not CLS-compliant.

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

 virtual System::UInt16 System.IConvertible.ToUInt16(IFormatProvider ^ provider) = IConvertible::ToUInt16;
[System.CLSCompliant(false)]
ushort IConvertible.ToUInt16 (IFormatProvider provider);
Function ToUInt16 (provider As IFormatProvider) As UShort Implements IConvertible.ToUInt16

Parameters

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The converted value.

Implements

Attributes

Remarks

Uses Convert to perform the conversion.

Applies to