DataServiceAsyncExtensions.GetReadStreamAsync Method

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetReadStreamAsync ( _
    context As DataServiceContext, _
    entity As Object, _
    args As DataServiceRequestArgs, _
    state As Object _
) As Task(Of DataServiceStreamResponse)
'Usage
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
)
[ExtensionAttribute]
public:
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>

Parameters

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 https://msdn.microsoft.com/en-us/library/bb384936(v=azure.10) or https://msdn.microsoft.com/en-us/library/bb383977(v=azure.10).

See Also

Reference

DataServiceAsyncExtensions Class

Microsoft.WindowsAzure.MediaServices.Client Namespace