Export (0) Print
Expand All

HttpClientConnection.ProxyDomain Property

Gets or sets the domain setting that is used to log on to the proxy.

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

public string ProxyDomain { get; set; }

Property Value

Type: String
A String that contains the domain used to log on to the proxy.

This property applies only if you are using credentials.

The following code example creates an HttpClientConnection, then sets the properties. The value of the properties requires replacement 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";

Community Additions

ADD
Show:
© 2015 Microsoft