IFormatterConverter.ToUInt16(Object) IFormatterConverter.ToUInt16(Object) IFormatterConverter.ToUInt16(Object) IFormatterConverter.ToUInt16(Object) Method

定義

重要

此 API 不符合 CLS 規範。

將值轉換為 16 位元不帶正負號的整數。Converts a value to a 16-bit unsigned integer.

public:
 System::UInt16 ToUInt16(System::Object ^ value);
[System.CLSCompliant(false)]
public ushort ToUInt16 (object value);
abstract member ToUInt16 : obj -> uint16
Public Function ToUInt16 (value As Object) As UShort

參數

value
Object Object Object Object

要被轉換的物件。The object to be converted.

傳回

已轉換的 valueThe converted value.

適用於