System::Net::WebClient‑klassen

WebClient class

WebClient provides common methods for sending and receiving data. Objects of this class should only be allocated using 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 pointer and use this pointer to pass it to functions as argument.

class WebClient : public System::ComponentModel::Component

Metoder

MetodBeskrivning
DownloadData(const String&) constLaddar ner den angivna resursen som en byte‑array.
DownloadData(const SharedPtr<Uri>&) constLaddar ner den angivna resursen som en byte‑array.
DownloadString(const String&) constLaddar ner den angivna resursen som en sträng.
DownloadString(const SharedPtr<Uri>&) constLaddar ner den angivna resursen som en sträng.
get_Encoding() constHämtar den kodning som används för att ladda ner eller ladda upp strängar.
set_Encoding(const SharedPtr<Text::Encoding>&)Ställer in den kodning som används för att ladda ner eller ladda upp strängar.
set_UseDefaultCredentials(bool)INTE IMPLEMENTERAT.
WebClient()RTTI-information.
~WebClient()Destruerar den aktuella instansen.

Se även