HttpClientConnection.OpenRead 方法

Opens a readable stream for the data to be downloaded from the resource specified by the ServerURL property.

命名空间:  Microsoft.SqlServer.Dts.Runtime
程序集:  Microsoft.SqlServer.ManagedDTS(在 Microsoft.SqlServer.ManagedDTS.dll 中)

语法

声明
Public Function OpenRead As Stream
用法
Dim instance As HttpClientConnection 
Dim returnValue As Stream 

returnValue = instance.OpenRead()
public Stream OpenRead()
public:
Stream^ OpenRead()
member OpenRead : unit -> Stream
public function OpenRead() : Stream

返回值

类型:System.IO.Stream
A Stream used to read data from the resource.

示例

The following code example creates an HttpClientConnection then calls OpenRead to pull the data into a stream.

Stream stream = null;
HttpClientConnection request = httpConn as HttpClientConnection;
stream = request.OpenRead();
Dim stream As Stream =  Nothing 
Dim request As HttpClientConnection =  httpConn as HttpClientConnection 
stream = request.OpenRead()

请参阅

参考

HttpClientConnection 类

Microsoft.SqlServer.Dts.Runtime 命名空间