Udostępnij za pośrednictwem


GlobalProxySelection Klasa

Definicja

Uwaga

GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.

Uwaga

This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202

Uwaga

This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202

Zawiera globalne domyślne wystąpienie serwera proxy dla wszystkich żądań HTTP.

public ref class GlobalProxySelection
[System.Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")]
public class GlobalProxySelection
[System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
[System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
public class GlobalProxySelection
[<System.Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")>]
type GlobalProxySelection = class
[<System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
[<System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
type GlobalProxySelection = class
Public Class GlobalProxySelection
Dziedziczenie
GlobalProxySelection
Atrybuty

Uwagi

Program GlobalProxySelection przechowuje ustawienia serwera proxy domyślnego serwera proxy używanego WebRequest przez wystąpienia do kontaktowania się z witrynami internetowymi poza siecią lokalną. Domyślne ustawienie serwera proxy jest inicjowane z pliku konfiguracji globalnej lub aplikacji i może zostać zastąpione dla poszczególnych żądań lub wyłączone, ustawiając HttpWebRequest.Proxy właściwość na wynik GetEmptyWebProxy metody.

Ustawienia serwera proxy przechowywane w programie GlobalProxySelection są używane przez wszystkie WebRequest obiekty pochodne, które obsługują serwery proxy i mają ich Proxy wartość właściwości ustawioną na null (wartość domyślna). Serwery proxy są obecnie obsługiwane przez FtpWebRequestsystemy , HttpWebRequesti WebClient.

Uwaga Zmiany w GlobalProxySelection obiekcie po wprowadzeniu żądania nie zostaną odzwierciedlone w obiekcie WebRequest.

Konstruktory

Nazwa Opis
GlobalProxySelection()
Przestarzałe.
Przestarzałe.
Przestarzałe.

Inicjuje nowe wystąpienie klasy GlobalProxySelection.

Właściwości

Nazwa Opis
Select
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera lub ustawia globalny serwer proxy HTTP.

Metody

Nazwa Opis
Equals(Object)
Przestarzałe.
Przestarzałe.
Przestarzałe.

Określa, czy określony obiekt jest równy bieżącemu obiektowi.

(Odziedziczone po Object)
GetEmptyWebProxy()
Przestarzałe.
Przestarzałe.
Przestarzałe.

Zwraca puste wystąpienie serwera proxy.

GetHashCode()
Przestarzałe.
Przestarzałe.
Przestarzałe.

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera Type bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()
Przestarzałe.
Przestarzałe.
Przestarzałe.

Tworzy płytkią kopię bieżącego Object.

(Odziedziczone po Object)
ToString()
Przestarzałe.
Przestarzałe.
Przestarzałe.

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy

Zobacz też