Udostępnij za pośrednictwem


Właściwość HttpClientConnection.ServerURL

Pobiera lub ustawia adres URL, który określa lokalizację serwera.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
Public Property ServerURL As String
    Get
    Set
'Użycie
Dim instance As HttpClientConnection
Dim value As String

value = instance.ServerURL

instance.ServerURL = value
public string ServerURL { get; set; }
public:
property String^ ServerURL {
    String^ get ();
    void set (String^ value);
}
member ServerURL : string with get, set
function get ServerURL () : String
function set ServerURL (value : String)

Wartość właściwości

Typ: System.String
A ciąg zawierający lokalizację serwera.

Przykłady

Poniższy przykład kodu pokazuje, jak utworzyć połączenie HTTP pakiet i utworzyć połączenie klient.Następnie ustawia kilka właściwość, łącznie z BypassProxyOnLocal właściwość.

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