## 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
```

## Méthodes

| Méthode | Description |
| --- | --- |
| [DownloadData](./downloaddata/)(const String\&) const | Télécharge la ressource spécifiée sous forme de tableau d'octets. |
| [DownloadData](./downloaddata/)(const SharedPtr\<Uri\>\&) const | Télécharge la ressource spécifiée sous forme de tableau d'octets. |
| [DownloadString](./downloadstring/)(const String\&) const | Télécharge la ressource spécifiée sous forme de chaîne. |
| [DownloadString](./downloadstring/)(const SharedPtr\<Uri\>\&) const | Télécharge la ressource spécifiée sous forme de chaîne. |
| [get_Encoding](./get_encoding/)() const | Obtient l'encodage utilisé pour télécharger ou envoyer des chaînes. |
| [set_Encoding](./set_encoding/)(const SharedPtr\<Text::Encoding\>\&) | Définit l'encodage utilisé pour télécharger ou envoyer des chaînes. |
| [set_UseDefaultCredentials](./set_usedefaultcredentials/)(bool) | NON IMPLEMENTÉ. |
| [WebClient](./webclient/)() | Informations RTTI. |
| [~WebClient](./~webclient/)() | Détruit l'instance actuelle. |
## Voir aussi

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