다음을 통해 공유


HttpClientConnection.ProxyBypassList 속성

정의

프록시 서버를 사용하지 않는 주소를 가져오거나 설정합니다.

public:
 property cli::array <System::String ^> ^ ProxyBypassList { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] ProxyBypassList { get; set; }
member this.ProxyBypassList : string[] with get, set
Public Property ProxyBypassList As String()

속성 값

String[]

프록시 서버를 사용하지 않는 주소의 배열입니다.

예제

다음 코드 예제에서는 속성을 HttpClientConnection만든 다음, 설정합니다. 속성 값은 애플리케이션에 유효한 값으로 대체해야 합니다.

string[] byPassList = { "http://myserver", "http://companysite" };  
Package pkg = new Package();  
ConnectionManager httpConn = pkg.Connections.Add("HTTP");  
HttpClientConnection clientConn = new HttpClientConnection(httpConn.AcquireConnection(null));  
clientConn.ChunkSize = 5;  // Default is 1.  
clientConn.ProxyBypassList = byPassList;  
clientConn.Timeout = 60;  // Default is 30.  
clientConn.UseSecureConnection = false;  

// When UseServerCredentials is true, provide Domain and Password.  
clientConn.UseServerCredentials = true;  
clientConn.ServerDomain = "serverLogOnDomain";  
clientConn.ServerUserName = "serversUserName";  
clientConn.ServerPassword = "serverPasswd"; // Write-only property.  

// When UseProxyCredentials is true, provide Domain and Password.  
clientConn.UseProxyCredentials = true;  
clientConn.ProxyDomain = "myDomain";  
clientConn.ProxyPassword = "proxyPassword";  
Dim byPassList() As String = {"http://myserver", "http://companysite"}  

Dim pkg As Package =  New Package()   
Dim httpConn As ConnectionManager =  pkg.Connections.Add("HTTP")   
Dim clientConn As HttpClientConnection =  New HttpClientConnection(httpConn.AcquireConnection(Nothing))   
clientConn.ChunkSize = 5  ' Default is 1.  
clientConn.ProxyBypassList = byPassList  
clientConn.Timeout = 60  ' Default is 30.  
clientConn.UseSecureConnection = False  

' When UseServerCredentials is true, provide Domain and Password.  
clientConn.UseServerCredentials = True  
clientConn.ServerDomain = "serverLogOnDomain"  
clientConn.ServerUserName = "serversUserName"  
clientConn.ServerPassword = "serverPasswd" ' Write-only property.  

' When UseProxyCredentials is true, provide Domain and Password.  
clientConn.UseProxyCredentials = True  
clientConn.ProxyDomain = "myDomain"  
clientConn.ProxyPassword = "proxyPassword"  

적용 대상