GlobalProxySelection.GetEmptyWebProxy Metódus

Definíció

Üres proxypéldányt ad vissza.

public:
 static System::Net::IWebProxy ^ GetEmptyWebProxy();
public static System.Net.IWebProxy GetEmptyWebProxy();
static member GetEmptyWebProxy : unit -> System.Net.IWebProxy
Public Shared Function GetEmptyWebProxy () As IWebProxy

Válaszok

Olyan IWebProxy , amely nem tartalmaz információt.

Megjegyzések

A GetEmptyWebProxy metódus egy üres IWebProxy példányt ad vissza, amely azt jelzi, hogy a rendszer nem használ proxyt egy internetes erőforrás eléréséhez.

A metódus meghívása helyett hozzárendelheti GetEmptyWebProxy a null tagokat, például a WebClient.Proxy tulajdonságot, amely meghatározza azt a proxyt, amely az objektum nevében kommunikál a WebClient távoli kiszolgálókkal.

A következőre érvényes: