## XmlReader::IsNameToken method


返回一个值，指示字符串参数是否为有效的 XML 名称标记。

```cpp
static bool System::Xml::XmlReader::IsNameToken(const String &str)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| str | const String\& | 要验证的名称标记。 |

### ReturnValue

**true** if it is a valid name token; otherwise **false**.

## 另见

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