HttpClientConnection.BypassProxyOnLocal 属性
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.
命名空间: Microsoft.SqlServer.Dts.Runtime
程序集: Microsoft.SqlServer.ManagedDTS(在 Microsoft.SqlServer.ManagedDTS.dll 中)
语法
声明
Public Property BypassProxyOnLocal As Boolean
Get
Set
用法
Dim instance As HttpClientConnection
Dim value As Boolean
value = instance.BypassProxyOnLocal
instance.BypassProxyOnLocal = value
public bool BypassProxyOnLocal { get; set; }
public:
property bool BypassProxyOnLocal {
bool get ();
void set (bool value);
}
member BypassProxyOnLocal : bool with get, set
function get BypassProxyOnLocal () : boolean
function set BypassProxyOnLocal (value : boolean)
属性值
类型:System.Boolean
A Boolean that indicates whether or not to bypass the proxy for local addresses.
示例
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