HttpClientConnection.ProxyBypassList Property

Gets or sets the addresses that do not use a proxy server.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntax

'Declaration
Public Property ProxyBypassList As String()
public string[] ProxyBypassList { get; set; }
public:
property array<String^>^ ProxyBypassList {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
/** @property */
public String[] get_ProxyBypassList ()

/** @property */
public void set_ProxyBypassList (String[] value)
public function get ProxyBypassList () : String[]

public function set ProxyBypassList (value : String[])

Property Value

An array of addresses that do not use the proxy server.

Example

The following code example creates an HttpClientConnection, then sets the properties. The value of the properties require replacment with values that are valid for your application.

string[] byPassList = { "http://myserver", "http://companysite" };
Package pkg = new Package();
ConnectionManager httpConn = pkg.Connections.Add("HTTP");
HttpClientConnection clientConn = new HttpClientConnection(httpConn.AcquireConnection(null));
clientConn.ChunkSize = 5;  // Default is 1.
clientConn.ProxyBypassList = byPassList;
clientConn.Timeout = 60;  // Default is 30.
clientConn.UseSecureConnection = false;

// When UseServerCredentials is true, provide Domain and Password.
clientConn.UseServerCredentials = true;
clientConn.ServerDomain = "serverLogOnDomain";
clientConn.ServerUserName = "serversUserName";
clientConn.ServerPassword = "serverPasswd"; // Write-only property.

// When UseProxyCredentials is true, provide Domain and Password.
clientConn.UseProxyCredentials = true;
clientConn.ProxyDomain = "myDomain";
clientConn.ProxyPassword = "proxyPassword";
Dim byPassList() As String = {"http://myserver", "http://companysite"}

Dim pkg As Package =  New Package() 
Dim httpConn As ConnectionManager =  pkg.Connections.Add("HTTP") 
Dim clientConn As HttpClientConnection =  New HttpClientConnection(httpConn.AcquireConnection(Nothing)) 
clientConn.ChunkSize = 5  ' Default is 1.
clientConn.ProxyBypassList = byPassList
clientConn.Timeout = 60  ' Default is 30.
clientConn.UseSecureConnection = False
 
' When UseServerCredentials is true, provide Domain and Password.
clientConn.UseServerCredentials = True
clientConn.ServerDomain = "serverLogOnDomain"
clientConn.ServerUserName = "serversUserName"
clientConn.ServerPassword = "serverPasswd" ' Write-only property.
 
' When UseProxyCredentials is true, provide Domain and Password.
clientConn.UseProxyCredentials = True
clientConn.ProxyDomain = "myDomain"
clientConn.ProxyPassword = "proxyPassword"

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

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