Condividi tramite


HttpClientConnection(Object) Costruttore

Definizione

Inizializza una nuova istanza della classe HttpClientConnection.

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)

Parametri

unmanagedObject
Object

Oggetto non gestito.

Esempio

Nell'esempio di codice seguente viene illustrato come creare una connessione HTTP per un pacchetto e creare una connessione client.

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

Si applica a