HttpClientConnection(Object) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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))