## XmlReader::ReadElementContentAsString() method


读取当前元素并将内容作为 [String](../../../system/string/) 对象返回。

```cpp
virtual String System::Xml::XmlReader::ReadElementContentAsString()
```


### ReturnValue

元素内容作为 [String](../../../system/string/) 对象。

## 另见

* Class [String](../../../system/string/)
* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
## XmlReader::ReadElementContentAsString(String, String) method


检查指定的本地名称和命名空间 URI 是否与当前元素匹配，然后读取当前元素并将内容作为 [String](../../../system/string/) 对象返回。

```cpp
virtual String System::Xml::XmlReader::ReadElementContentAsString(String localName, String namespaceURI)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| localName | String | 元素的本地名称。 |
| namespaceURI | String | 元素的命名空间 URI。 |

### ReturnValue

元素内容作为 [String](../../../system/string/) 对象。

## 另见

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