DataServiceAsyncExtensions.GetReadStreamAsync Method

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)


<ExtensionAttribute> _
Public Shared Function GetReadStreamAsync ( _
    context As DataServiceContext, _
    entity As Object, _
    args As DataServiceRequestArgs, _
    state As Object _
) As Task(Of DataServiceStreamResponse)
Dim context As DataServiceContext 
Dim entity As Object 
Dim args As DataServiceRequestArgs 
Dim state As Object 
Dim returnValue As Task(Of DataServiceStreamResponse)

returnValue = context.GetReadStreamAsync(entity, _
    args, state)
public static Task<DataServiceStreamResponse> GetReadStreamAsync(
    this DataServiceContext context,
    Object entity,
    DataServiceRequestArgs args,
    Object state
static Task<DataServiceStreamResponse^>^ GetReadStreamAsync(
    DataServiceContext^ context, 
    Object^ entity, 
    DataServiceRequestArgs^ args, 
    Object^ state
static member GetReadStreamAsync : 
        context:DataServiceContext * 
        entity:Object * 
        args:DataServiceRequestArgs * 
        state:Object -> Task<DataServiceStreamResponse> 
public static function GetReadStreamAsync(
    context : DataServiceContext, 
    entity : Object, 
    args : DataServiceRequestArgs, 
    state : Object
) : Task<DataServiceStreamResponse>


Return Value

Type: System.Threading.Tasks.Task<DataServiceStreamResponse>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataServiceContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


DataServiceAsyncExtensions Class

Microsoft.WindowsAzure.MediaServices.Client Namespace