GlobalProxySelection Klasse

Definition

Achtung

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

Achtung

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

Achtung

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

Enthält eine globale Standardproxyinstanz für alle HTTP-Anforderungen.

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
Vererbung
GlobalProxySelection
Attribute

Beispiele

Im folgenden Codebeispiel wird für GlobalProxySelection einen HTTP-Proxy mit dem Namen "webproxy" an Port 80 festgelegt.

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)

Hinweise

Der GlobalProxySelection speichert die Proxyeinstellungen für den Standardproxy, den Instanzen verwenden, WebRequest um Internetwebsites außerhalb des lokalen Netzwerks zu kontaktieren. Die Standardproxyeinstellung wird aus der globalen Konfigurationsdatei oder der Anwendungskonfigurationsdatei initialisiert und kann für einzelne Anforderungen überschrieben oder deaktiviert werden, indem die HttpWebRequest.Proxy Eigenschaft auf das Ergebnis der GetEmptyWebProxy Methode festgelegt wird.

Die in GlobalProxySelection gespeicherten Proxyeinstellungen werden von allen abgeleiteten WebRequest Objekten verwendet, die Proxys unterstützen und deren Proxy Eigenschaftswert auf null (Standard) festgelegt ist. Proxys werden derzeit von FtpWebRequest, HttpWebRequestund WebClientunterstützt.

Hinweis Änderungen an der GlobalProxySelection , nachdem eine Anforderung erfolgt ist, werden nicht in einem WebRequestwiderspiegelt.

Konstruktoren

GlobalProxySelection()
Veraltet.
Veraltet.
Veraltet.

Initialisiert eine neue Instanz der GlobalProxySelection-Klasse.

Eigenschaften

Select
Veraltet.
Veraltet.
Veraltet.

Ruft den globalen HTTP-Proxy ab oder legt diesen fest.

Methoden

Equals(Object)
Veraltet.
Veraltet.
Veraltet.

Bestimmt, ob das angegebene Objekt gleich dem aktuellen Objekt ist.

(Geerbt von Object)
GetEmptyWebProxy()
Veraltet.
Veraltet.
Veraltet.

Gibt eine leere Proxyinstanz zurück.

GetHashCode()
Veraltet.
Veraltet.
Veraltet.

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetType()
Veraltet.
Veraltet.
Veraltet.

Ruft den Type der aktuellen Instanz ab.

(Geerbt von Object)
MemberwiseClone()
Veraltet.
Veraltet.
Veraltet.

Erstellt eine flache Kopie des aktuellen Object.

(Geerbt von Object)
ToString()
Veraltet.
Veraltet.
Veraltet.

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.

(Geerbt von Object)

Gilt für:

Weitere Informationen