Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

WebClient.OpenReadAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9147)

OpenReadAsync(String, Object)

Begins asynchronous OpenRead operation. Opens a stream that contains data retrieved from provided URI.

Declaration
public Task<Stream> OpenReadAsync(string uri, object state = null)
Parameters
Type Name Description
String uri

URI to retrieve data from.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<Stream>

Opened stream with data retrieved from provided URI.

Remarks

HTTP method GET is used to retrieve the data.

OpenReadAsync(Uri, Object)

Begins asynchronous OpenRead operation. Opens a stream that contains data retrieved from provided URI.

Declaration
public Task<Stream> OpenReadAsync(Uri uri, object state = null)
Parameters
Type Name Description
Uri uri

URI to retrieve data from.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<Stream>

Opened stream with data retrieved from provided URI.

Remarks

HTTP method GET is used to retrieve the data.

In This Article
  • OpenReadAsync(String, Object)
  • OpenReadAsync(Uri, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies