WebProxy.GetDefaultProxy Méthode

Définition

Attention

This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202

Attention

This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202

Lit les paramètres de proxy non dynamique des options Internet.

public:
 static System::Net::WebProxy ^ GetDefaultProxy();
public static System.Net.WebProxy GetDefaultProxy();
[System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.WebProxy GetDefaultProxy();
[System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.WebProxy GetDefaultProxy();
static member GetDefaultProxy : unit -> System.Net.WebProxy
[<System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetDefaultProxy : unit -> System.Net.WebProxy
[<System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetDefaultProxy : unit -> System.Net.WebProxy
Public Shared Function GetDefaultProxy () As WebProxy

Retours

Instance WebProxy qui contient les paramètres de proxy non dynamiques à partir des options Internet.

Attributs

Exceptions

Remarques

La GetDefaultProxy méthode lit les paramètres de proxy non dynamiques à partir des options Internet de l’ordinateur et crée une WebProxy instance avec ces paramètres.

La méthode GetDefaultProxy ne récupère aucun paramètre dynamique généré à partir de scripts exécutés par Internet Explorer, à partir d’entrées de configuration automatiques ou de recherches DHCP ou DNS.

Les applications doivent utiliser la HttpClient.DefaultProxy propriété au lieu de la GetDefaultProxy méthode.

Note

Cette propriété n’est pas prise en charge sur .NET Core.

S’applique à