Partager via


Méthode HttpClientConnection.OpenRead

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
Public Function OpenRead As Stream
'Utilisation
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

Valeur de retour

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

Exemples

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

Voir aussi

Référence

HttpClientConnection Classe

Espace de noms Microsoft.SqlServer.Dts.Runtime