Share via


HttpClientConnection.ProxyURL Eigenschaft

Definition

Ruft die URL ab, die den Speicherort des Proxys angibt, oder legt sie fest.

public:
 property System::String ^ ProxyURL { System::String ^ get(); void set(System::String ^ value); };
public string ProxyURL { get; set; }
member this.ProxyURL : string with get, set
Public Property ProxyURL As String

Eigenschaftswert

Eine Zeichenfolge, die den URL-Speicherort des Proxys enthält.

Beispiele

Im folgenden Codebeispiel wird gezeigt, wie Sie eine HTTP-Verbindung für ein Paket erstellen und eine Clientverbindung erstellen. Anschließend werden mehrere Eigenschaften festgelegt, einschließlich der ProxyURL Eigenschaft.

// 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  

Gilt für: