## XmlConvert::ToByte method


将 [String](../../../system/string/) 转换为 [Byte](../../../system/byte/) 等价类型。

```cpp
static uint8_t System::Xml::XmlConvert::ToByte(const String &s)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| s | const String\& | 待转换的字符串。 |

### ReturnValue

字符串的 **[Byte](../../../system/byte/)** 等价物。

## 另见

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