HttpClientConnection(Object) 构造函数

定义

初始化 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)

参数

unmanagedObject
Object

非托管对象。

示例

下面的代码示例演示如何为包创建 HTTP 连接并创建客户端连接。

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

适用于