DataServiceContext.GetReadStream Method (Object, String, DataServiceRequestArgs)

WCF Data Services 5.0

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)

public DataServiceStreamResponse GetReadStream(
	Object entity,
	string name,
	DataServiceRequestArgs args


Type: System.Object
The entity that has the binary data stream to retrieve.
Type: System.String
The name of the binary stream to request.
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.

The GetReadStream(Object, String, DataServiceRequestArgs) method is used to return a named stream.