FormatterConverter::ToUInt16 Method (Object^)
.NET Framework (current version)
Converts a value to a 16-bit unsigned integer.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
public: [CLSCompliantAttribute(false)] virtual unsigned short ToUInt16( Object^ value ) sealed
Parameters
- value
-
Type:
System::Object^
The object to convert.
Implements
IFormatterConverter::ToUInt16(Object^)| Exception | Condition |
|---|---|
| ArgumentNullException | The value parameter is null. |
This method uses the invariant culture (see CultureInfo::InvariantCulture). To use the current culture or to specify a culture, use the Convert::ToUInt16 method instead. For more information, see UInt16, Convert, and ValueType.
.NET Framework
Available since 1.1
Available since 1.1
Show: