HttpClientConnection.BypassProxyOnLocal Proprietà

Definizione

Ottiene o imposta un valore booleano che indica se il server proxy è configurato per usare le credenziali e ignorare il server proxy e usare invece indirizzi locali.

public:
 property bool BypassProxyOnLocal { bool get(); void set(bool value); };
public bool BypassProxyOnLocal { get; set; }
member this.BypassProxyOnLocal : bool with get, set
Public Property BypassProxyOnLocal As Boolean

Valore della proprietà

Valore booleano che indica se ignorare o meno il proxy per gli indirizzi locali.

Esempio

Nell'esempio di codice seguente viene illustrato come creare una connessione HTTP per un pacchetto e creare una connessione client. Imposta quindi diverse proprietà, inclusa la BypassProxyOnLocal proprietà .

// Create an HTTP connection.  
ConnectionManager httpConn = pkg.Connections.Add("HTTP");  
HttpClientConnection clientConn = new   
           HttpClientConnection(httpConn.AcquireConnection(null));  
string HTTPUrl = @"http://<yourserver>/<yourfolder>/test.asmx?wsdl";  
clientConn.UseProxy = true;  
clientConn.ProxyURL = @"http://<yourproxy>";  
clientConn.BypassProxyOnLocal = true;  
clientConn.ServerURL = HTTPUrl;  
' Create an HTTP connection.  
Dim httpConn As ConnectionManager =  pkg.Connections.Add("HTTP")   
HttpClientConnection clientConn = New   
           HttpClientConnection(httpConn.AcquireConnection(Nothing))  
Dim HTTPUrl As String =  "http:// <yourserver>/<yourfolder>/test.asmx?wsdl"   
clientConn.UseProxy = True  
clientConn.ProxyURL = "http://<yourproxy>"  
clientConn.BypassProxyOnLocal = True  
clientConn.ServerURL = HTTPUrl  

Si applica a