HttpClientConnection.OpenRead Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Opens a readable stream for the data to be downloaded from the resource specified by the ServerURL property.
public:
System::IO::Stream ^ OpenRead();
public System.IO.Stream OpenRead ();
member this.OpenRead : unit -> System.IO.Stream
Public Function OpenRead () As Stream
Returns
A Stream used to read data from the resource.
Examples
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()