Поделиться через


Конструктор HttpClientConnection

Initializes a new instance of the HttpClientConnection class.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Sub New ( _
    unmanagedObject As Object _
)
'Применение
Dim unmanagedObject As Object

Dim instance As New HttpClientConnection(unmanagedObject)
public HttpClientConnection(
    Object unmanagedObject
)
public:
HttpClientConnection(
    Object^ unmanagedObject
)
new : 
        unmanagedObject:Object -> HttpClientConnection
public function HttpClientConnection(
    unmanagedObject : Object
)

Параметры

Примеры

The following code example shows how to create an HTTP connection for a package and create a client connection.

// Create an HTTP connection.
Package pkg = new Package();
ConnectionManager httpConn = pkg.Connections.Add("HTTP");
HttpClientConnection clientConn = new HttpClientConnection(httpConn.AcquireConnection(null));
' Create an HTTP connection.
Dim pkg As Package =  New Package() 
Dim httpConn As ConnectionManager =  pkg.Connections.Add("HTTP") 
Dim clientConn As HttpClientConnection =  New HttpClientConnection(httpConn.AcquireConnection(Nothing))