## WebClient::DownloadString(const SharedPtr\<Uri\>\&) const method


将指定资源下载为字符串。

```cpp
String System::Net::WebClient::DownloadString(const SharedPtr<Uri> &address) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 地址 | const SharedPtr\<Uri\>\& | 资源的 URI。 |

### ReturnValue

包含请求资源的字符串。

## 另见

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Uri](../../../system/uri/)
* Class [WebClient](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## WebClient::DownloadString(const String\&) const method


将指定资源下载为字符串。

```cpp
String System::Net::WebClient::DownloadString(const String &address) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 地址 | const String\& | 资源的 URI。 |

### ReturnValue

包含请求资源的字符串。

## 另见

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