Share via


HttpClientConnection.ServerURL Propiedad

Definición

Obtiene o establece la dirección URL que especifica la ubicación del servidor.

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

Valor de propiedad

Cadena que contiene la ubicación del servidor.

Ejemplos

En el ejemplo de código siguiente se muestra cómo crear una conexión HTTP para un paquete y crear una conexión de cliente. A continuación, establece varias propiedades, incluida la BypassProxyOnLocal propiedad .

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

Se aplica a