GlobalProxySelection Klasa

Definicja

Przestroga

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

Przestroga

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

Przestroga

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("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("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. http://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
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")>]
type GlobalProxySelection = class
[<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. http://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
type GlobalProxySelection = class
Public Class GlobalProxySelection
Dziedziczenie
GlobalProxySelection
Atrybuty

Przykłady

Poniższy przykład kodu ustawia GlobalProxySelection dla serwera proxy HTTP o nazwie "webproxy" na porcie 80.

Uri^ proxyURI = gcnew Uri( "http://webproxy:80" );
GlobalProxySelection::Select = gcnew WebProxy( proxyURI );
Uri proxyURI = new Uri("http://webproxy:80");
GlobalProxySelection.Select = new WebProxy(proxyURI);
Dim proxyURI As New Uri("http://webproxy:80")
GlobalProxySelection.Select = New WebProxy(proxyURI)

Uwagi

Przechowuje GlobalProxySelection ustawienia serwera proxy dla 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 przez ustawienie HttpWebRequest.Proxy właściwości 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 są odzwierciedlane w obiekcie WebRequest.

Konstruktory

GlobalProxySelection()

Inicjuje nowe wystąpienie klasy GlobalProxySelection.

Właściwości

Select

Pobiera lub ustawia globalny serwer proxy HTTP.

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetEmptyWebProxy()

Zwraca puste wystąpienie serwera proxy.

GetHashCode()

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

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

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

(Odziedziczone po Object)
ToString()

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

(Odziedziczone po Object)

Dotyczy

Zobacz też