## WebClient class


[WebClient](./) provides common methods for sending and receiving data. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
class WebClient : public System::ComponentModel::Component
```

## 메서드

| 메서드 | 설명 |
| --- | --- |
| [DownloadData](./downloaddata/)(const String\&) const | 지정된 리소스를 바이트 배열로 다운로드합니다. |
| [DownloadData](./downloaddata/)(const SharedPtr\<Uri\>\&) const | 지정된 리소스를 바이트 배열로 다운로드합니다. |
| [DownloadString](./downloadstring/)(const String\&) const | 지정된 리소스를 문자열로 다운로드합니다. |
| [DownloadString](./downloadstring/)(const SharedPtr\<Uri\>\&) const | 지정된 리소스를 문자열로 다운로드합니다. |
| [get_Encoding](./get_encoding/)() const | 문자열을 다운로드하거나 업로드할 때 사용되는 인코딩을 가져옵니다. |
| [set_Encoding](./set_encoding/)(const SharedPtr\<Text::Encoding\>\&) | 문자열을 다운로드하거나 업로드할 때 사용되는 인코딩을 설정합니다. |
| [set_UseDefaultCredentials](./set_usedefaultcredentials/)(bool) | 구현되지 않음. |
| [WebClient](./webclient/)() | RTTI 정보. |
| [~WebClient](./~webclient/)() | 현재 인스턴스를 소멸시킵니다. |
## 또 보기

* Class [Component](../../system.componentmodel/component/)
* Namespace [System::Net](../)
* Library [Aspose.Page for C++](../../)
