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

WebClient.OpenWriteAsync Method

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

OpenWriteAsync(String, Object)

Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI.

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

Uri to send data to.

Object state

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

Returns
Type Description
Task<Stream>

Opened stream.

Remarks

HTTP method POST is used.

OpenWriteAsync(Uri, Object)

Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI.

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

Uri to send data to.

Object state

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

Returns
Type Description
Task<Stream>

Opened stream.

Remarks

HTTP method POST is used.

OpenWriteAsync(String, String, Object)

Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI.

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

Uri to send data to.

String method

HTTP method to use when sending the data from the stream.

Object state

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

Returns
Type Description
Task<Stream>

Opened stream.

OpenWriteAsync(Uri, String, Object)

Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI.

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

Uri to send data to.

String method

HTTP method to use when sending the data from the stream.

Object state

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

Returns
Type Description
Task<Stream>

Opened stream.

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