共用方式為


HttpClientConnection.ProxyURL Property

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

命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

語法

'宣告
Public Property ProxyURL As String
public string ProxyURL { get; set; }
public:
property String^ ProxyURL {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ProxyURL ()

/** @property */
public void set_ProxyURL (String value)
public function get ProxyURL () : String

public function set ProxyURL (value : String)

屬性值

A String that contains the URL location of the proxy.

範例

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

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

HttpClientConnection Class
HttpClientConnection Members
Microsoft.SqlServer.Dts.Runtime Namespace