Condividi tramite


HttpClientConnection.BypassProxyOnLocal Property

Gets or sets a Boolean that indicates if the proxy server is configured to use credentials and bypass the proxy server and use local addresses instead.

Spazio dei nomi: Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintassi

'Dichiarazione
Public Property BypassProxyOnLocal As Boolean
public bool BypassProxyOnLocal { get; set; }
public:
property bool BypassProxyOnLocal {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_BypassProxyOnLocal ()

/** @property */
public void set_BypassProxyOnLocal (boolean value)
public function get BypassProxyOnLocal () : boolean

public function set BypassProxyOnLocal (value : boolean)

Valore proprietà

A Boolean that indicates whether or not to bypass the proxy for local addresses.

Esempio

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

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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