Share via


GlobalProxySelection Sınıf

Tanım

Dikkat

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

Dikkat

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

Dikkat

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

Tüm HTTP istekleri için genel bir varsayılan proxy örneği içerir.

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
Devralma
GlobalProxySelection
Öznitelikler

Örnekler

Aşağıdaki kod örneği, bağlantı noktası 80'de "webproxy" adlı bir HTTP proxy'si için değerini ayarlar GlobalProxySelection .

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)

Açıklamalar

, GlobalProxySelection örneklerin yerel ağın WebRequest dışındaki İnternet siteleriyle iletişim kurmak için kullandığı varsayılan ara sunucu için ara sunucu ayarlarını depolar. Varsayılan proxy ayarı genel veya uygulama yapılandırma dosyasından başlatılır ve tek tek istekler için geçersiz kılınabilir veya özelliği yöntemin HttpWebRequest.ProxyGetEmptyWebProxy sonucuna ayarlanarak devre dışı bırakılabilir.

içinde GlobalProxySelection depolanan proxy ayarları, proxy'leri destekleyen ve Proxy özellik değerleri (varsayılan) olarak ayarlanmış null türetilmiş nesneler tarafından WebRequest kullanılır. Proxy'ler şu anda , HttpWebRequestve WebClienttarafından FtpWebRequestdesteklenmektedir.

NotGlobalProxySelection bir istek yapıldıktan sonra dosyasında yapılan değişiklikler öğesine WebRequestyansıtılmaz.

Oluşturucular

GlobalProxySelection()
Geçersiz.
Geçersiz.
Geçersiz.

GlobalProxySelection sınıfının yeni bir örneğini başlatır.

Özellikler

Select
Geçersiz.
Geçersiz.
Geçersiz.

Genel HTTP proxy'sini alır veya ayarlar.

Yöntemler

Equals(Object)
Geçersiz.
Geçersiz.
Geçersiz.

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
GetEmptyWebProxy()
Geçersiz.
Geçersiz.
Geçersiz.

Boş bir proxy örneği döndürür.

GetHashCode()
Geçersiz.
Geçersiz.
Geçersiz.

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()
Geçersiz.
Geçersiz.
Geçersiz.

Type Geçerli örneğini alır.

(Devralındığı yer: Object)
MemberwiseClone()
Geçersiz.
Geçersiz.
Geçersiz.

Geçerli Objectöğesinin sığ bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()
Geçersiz.
Geçersiz.
Geçersiz.

Geçerli nesneyi temsil eden dizeyi döndürür.

(Devralındığı yer: Object)

Şunlara uygulanır

Ayrıca bkz.