HttpClientConnection.ProxyDomain Property
Gets or sets the domain setting that is used to log on to the proxy.
네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
구문
‘선언
Public Property ProxyDomain As String
public string ProxyDomain { get; set; }
public:
property String^ ProxyDomain {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_ProxyDomain ()
/** @property */
public void set_ProxyDomain (String value)
public function get ProxyDomain () : String
public function set ProxyDomain (value : 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 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"
스레드 보안
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