ProxyBypassList プロパティ
プロキシ サーバーを使用しないアドレスを取得します。値の設定も可能です。
名前空間: Microsoft.SqlServer.Dts.Runtime
アセンブリ: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS.dll)
構文
'宣言
Public Property ProxyBypassList As String()
Get
Set
'使用
Dim instance As HttpClientConnection
Dim value As String()
value = instance.ProxyBypassList
instance.ProxyBypassList = value
public string[] ProxyBypassList { get; set; }
public:
property array<String^>^ ProxyBypassList {
array<String^>^ get ();
void set (array<String^>^ value);
}
member ProxyBypassList : string[] with get, set
function get ProxyBypassList () : String[]
function set ProxyBypassList (value : String[])
プロパティ値
型: array<System. . :: . .String> [] () [] []
プロキシ サーバーを使用しないアドレスの配列です。
使用例
次のコード例では、HttpClientConnection を作成し、プロパティを設定します。プロパティの値は、アプリケーションにとって有効な値に置き換える必要があります。
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"