Поделиться через


Свойство HttpClientConnection.ServerURL

Gets or sets the URL that specifies the location of the server.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Property ServerURL As String 
    Get 
    Set
'Применение
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)

Значение свойства

Тип: System.String
A String that contains the location of the server.

Примеры

The following code example shows how to create an HTTP connection for a package and create a client connection. It then sets several properties, including the BypassProxyOnLocal property.

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

См. также

Справочник

HttpClientConnection Класс

Пространство имен Microsoft.SqlServer.Dts.Runtime