UseProxy プロパティ

接続がプロキシを使用するかどうかを示す Boolean を取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Dts.Runtime
アセンブリ:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS.dll)

構文

'宣言
Public Property UseProxy As Boolean
    Get
    Set
'使用
Dim instance As HttpClientConnection
Dim value As Boolean

value = instance.UseProxy

instance.UseProxy = value
public bool UseProxy { get; set; }
public:
property bool UseProxy {
    bool get ();
    void set (bool value);
}
member UseProxy : bool with get, set
function get UseProxy () : boolean
function set UseProxy (value : boolean)

プロパティ値

型: System. . :: . .Boolean
接続がプロキシを使用するかどうかを示す Boolean です。値が true の場合、接続がプロキシを使用することを示します。値が false の場合、接続がプロキシを使用しないことを示します。

説明

既定値は false です。

使用例

次のコード例では、パッケージの HTTP 接続を作成し、クライアント接続を作成します。次に、UseProxy プロパティなどの複数のプロパティを設定します。

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