IConvertible.ToUInt16(IFormatProvider) Methode

Definition

Wandelt den Wert dieser Instanz mithilfe der angegebenen kulturspezifischen Formatierungsinformationen in eine entsprechende 16-Bit-ganzzahl ohne Vorzeichen um.

public:
 System::UInt16 ToUInt16(IFormatProvider ^ provider);
public ushort ToUInt16(IFormatProvider provider);
public ushort ToUInt16(IFormatProvider? provider);
abstract member ToUInt16 : IFormatProvider -> uint16
Public Function ToUInt16 (provider As IFormatProvider) As UShort

Parameter

provider
IFormatProvider

Eine IFormatProvider Schnittstellenimplementierung, die kulturspezifische Formatierungsinformationen bereitstellt.

Gibt zurück

Eine 16-Bit-ganzzahl ohne Vorzeichen, die dem Wert dieser Instanz entspricht.

Gilt für: