Share via


DataServiceContext.BeginGetReadStream Method

Definition

Overloads

BeginGetReadStream(Object, DataServiceRequestArgs, AsyncCallback, Object)

Asynchronously gets the binary data stream that belongs to the specified entity, by using the specified message headers.

BeginGetReadStream(Object, String, DataServiceRequestArgs, AsyncCallback, Object)

Asynchronously gets a named binary data stream that belongs to the specified entity, by using the specified message headers.

BeginGetReadStream(Object, DataServiceRequestArgs, AsyncCallback, Object)

Asynchronously gets the binary data stream that belongs to the specified entity, by using the specified message headers.

public virtual IAsyncResult BeginGetReadStream (object entity, Microsoft.OData.Client.DataServiceRequestArgs args, AsyncCallback callback, object state);
abstract member BeginGetReadStream : obj * Microsoft.OData.Client.DataServiceRequestArgs * AsyncCallback * obj -> IAsyncResult
override this.BeginGetReadStream : obj * Microsoft.OData.Client.DataServiceRequestArgs * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginGetReadStream (entity As Object, args As DataServiceRequestArgs, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

entity
Object

The entity that has a the binary data stream to retrieve.

args
DataServiceRequestArgs

Instance of the DataServiceRequestArgs class that contains settings for the HTTP request message.

callback
AsyncCallback

Delegate to invoke when results are available for client consumption.

state
Object

User-defined state object passed to the callback.

Returns

An IAsyncResult object that is used to track the status of the asynchronous operation.

Exceptions

Any of the parameters supplied to the method is null.

The entity is not tracked by this DataServiceContext.-or-The entity is in the Added state.-or-The entity is not a Media Link Entry and does not have a related binary data stream.

Applies to

BeginGetReadStream(Object, String, DataServiceRequestArgs, AsyncCallback, Object)

Asynchronously gets a named binary data stream that belongs to the specified entity, by using the specified message headers.

public virtual IAsyncResult BeginGetReadStream (object entity, string name, Microsoft.OData.Client.DataServiceRequestArgs args, AsyncCallback callback, object state);
abstract member BeginGetReadStream : obj * string * Microsoft.OData.Client.DataServiceRequestArgs * AsyncCallback * obj -> IAsyncResult
override this.BeginGetReadStream : obj * string * Microsoft.OData.Client.DataServiceRequestArgs * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginGetReadStream (entity As Object, name As String, args As DataServiceRequestArgs, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

entity
Object

The entity that has the binary data stream to retrieve.

name
String

The name of the binary stream to request.

args
DataServiceRequestArgs

Instance of the DataServiceRequestArgs class that contains settings for the HTTP request message.

callback
AsyncCallback

Delegate to invoke when results are available for client consumption.

state
Object

User-defined state object passed to the callback.

Returns

An IAsyncResult object that is used to track the status of the asynchronous operation.

Applies to