Share via


DataServiceContext.BeginGetReadStream Method (Object, String, DataServiceRequestArgs, AsyncCallback, Object)

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

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Function BeginGetReadStream ( _
    entity As Object, _
    name As String, _
    args As DataServiceRequestArgs, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As DataServiceContext 
Dim entity As Object 
Dim name As String 
Dim args As DataServiceRequestArgs 
Dim callback As AsyncCallback 
Dim state As Object 
Dim returnValue As IAsyncResult 

returnValue = instance.BeginGetReadStream(entity, _
    name, args, callback, state)
public IAsyncResult BeginGetReadStream(
    Object entity,
    string name,
    DataServiceRequestArgs args,
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginGetReadStream(
    Object^ entity, 
    String^ name, 
    DataServiceRequestArgs^ args, 
    AsyncCallback^ callback, 
    Object^ state
)
member BeginGetReadStream : 
        entity:Object * 
        name:string * 
        args:DataServiceRequestArgs * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult
public function BeginGetReadStream(
    entity : Object, 
    name : String, 
    args : DataServiceRequestArgs, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • entity
    Type: System.Object
    The entity that has the binary data stream to retrieve.
  • name
    Type: System.String
    The name of the binary stream to request.
  • callback
    Type: System.AsyncCallback
    Delegate to invoke when results are available for client consumption.
  • state
    Type: System.Object
    User-defined state object passed to the callback.

Return Value

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

See Also

Reference

DataServiceContext Class

BeginGetReadStream Overload

System.Data.Services.Client Namespace