HttpClientConnection(Object) Constructor

Definition

Initializes a new instance of the HttpClientConnection class.

public:
 HttpClientConnection(System::Object ^ unmanagedObject);
public HttpClientConnection (object unmanagedObject);
new Microsoft.SqlServer.Dts.Runtime.HttpClientConnection : obj -> Microsoft.SqlServer.Dts.Runtime.HttpClientConnection
Public Sub New (unmanagedObject As Object)

Parameters

unmanagedObject
Object

The unmanaged object.

Examples

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

Applies to