Aracılığıyla paylaş


HttpClientConnection.UseSecureConnection Özelliği

Alır veya ayarlar bir Boole bağlantı https veya http olup olmadığını gösterir.

Ad Alanı:  Microsoft.SqlServer.Dts.Runtime
Derleme:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)

Sözdizimi

'Bildirim
Public Property UseSecureConnection As Boolean
    Get
    Set
'Kullanım
Dim instance As HttpClientConnection
Dim value As Boolean

value = instance.UseSecureConnection

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

Özellik Değeri

Tür: System.Boolean
Döndürür bir Boole bağlantı https veya http olup olmadığını gösterir.Değeri, doğru güvenli bir https bağlantısı kullanıldığını gösterir.Değeri, yanlış güvenli bir bağlantı kullanılmadığı anlamına gelir.Bunun yerine, http kullanılır.

Açıklamalar

Varsayılan değer yanlış.

Örnekler

Aşağıdaki kod örneği oluşturur bir HttpClientConnection, ardından ayarlar özellikleri.Değer özellikleri, uygulamanız için geçerli değerler ile replacment gerekir.

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"