다음을 통해 공유


HttpClientConnection.UseProxy Property

Gets or sets a Boolean that indicates whether or not the connection will use a proxy.

네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

구문

‘선언
Public Property UseProxy As Boolean
public bool UseProxy { get; set; }
public:
property bool UseProxy {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_UseProxy ()

/** @property */
public void set_UseProxy (boolean value)
public function get UseProxy () : boolean

public function set UseProxy (value : boolean)

속성 값

A Boolean that indicates if the connection will use a proxy. A value of true indicates that the connection will use a proxy. A value of false indicates that the connection will not use a proxy.

주의

Default value is false.

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 UseProxy 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

스레드 보안

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