DataServiceContext.GetReadStream Method (Object, String, DataServiceRequestArgs)
Gets a named binary data stream that belongs to the specified entity, by using the specified Content-Type message header.
Not supported by the WCF Data Services 5.0 client for Silverlight.
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Function GetReadStream ( _
entity As Object, _
name As String, _
args As DataServiceRequestArgs _
) As DataServiceStreamResponse
'Usage
Dim instance As DataServiceContext
Dim entity As Object
Dim name As String
Dim args As DataServiceRequestArgs
Dim returnValue As DataServiceStreamResponse
returnValue = instance.GetReadStream(entity, _
name, args)
public DataServiceStreamResponse GetReadStream(
Object entity,
string name,
DataServiceRequestArgs args
)
public:
DataServiceStreamResponse^ GetReadStream(
Object^ entity,
String^ name,
DataServiceRequestArgs^ args
)
member GetReadStream :
entity:Object *
name:string *
args:DataServiceRequestArgs -> DataServiceStreamResponse
public function GetReadStream(
entity : Object,
name : String,
args : DataServiceRequestArgs
) : DataServiceStreamResponse
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.
- args
Type: System.Data.Services.Client.DataServiceRequestArgs
Instance of DataServiceRequestArgs class that contains settings for the HTTP request message.
Return Value
Type: System.Data.Services.Client.DataServiceStreamResponse
An instance of DataServiceStreamResponse that represents the response.
Remarks
The GetReadStream(Object, String, DataServiceRequestArgs) method is used to return a named stream.