GlobalProxySelection 클래스

정의

주의

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

주의

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

주의

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

모든 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
상속
GlobalProxySelection
특성

예제

다음 코드 예제에서는 포트 80에서 "webproxy"라는 HTTP 프록시를 설정합니다 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)

설명

인스턴스 GlobalProxySelection 가 로컬 네트워크 이외의 인터넷 사이트에 연락하는 데 사용하는 기본 프록시에 대한 프록시 WebRequest 설정을 저장합니다. 기본 프록시 설정을 전역 또는 애플리케이션 구성 파일에서 초기화 되 고 개별 요청에 대해 재정의 하거나 해제할 수 설정 하 여 합니다 HttpWebRequest.Proxy 속성의 결과에 GetEmptyWebProxy 메서드.

저장된 GlobalProxySelection 프록시 설정은 프록시 Proxy 를 지원하고 속성 값이 (기본값)으로 null 설정된 파생 WebRequest 개체에서 사용됩니다. 프록시는 현재 , HttpWebRequestWebClient.에서 지원FtpWebRequest됩니다.

참고 요청이 이루어진 후의 GlobalProxySelection 변경 내용은 에 반영되지 WebRequest않습니다.

생성자

GlobalProxySelection()

GlobalProxySelection 클래스의 새 인스턴스를 초기화합니다.

속성

Select

글로벌 HTTP 프록시를 가져오거나 설정합니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetEmptyWebProxy()

빈 프록시 인스턴스를 반환합니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보