## XmlConvert::ToUInt16 method


Converts the [String](../../../system/string/) to a [UInt16](../../../system/uint16/) equivalent.

```cpp
static uint16_t System::Xml::XmlConvert::ToUInt16(const String &s)
```


| Parameter | Type | Description |
| --- | --- | --- |
| s | const String\& | The string to convert. |

### ReturnValue

A [UInt16](../../../system/uint16/) equivalent of the string.

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
