Share via


DataServiceStreamResponse.Stream Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the binary property data from the data service as a binary stream.

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

Syntax

'Declaration
Public ReadOnly Property Stream As Stream
public Stream Stream { get; }

Property Value

Type: System.IO.Stream
The stream that contains the binary property data.

Exceptions

Exception Condition
ObjectDisposedException

When the DataServiceStreamResponse is already disposed.

Remarks

When a network errors occurs while reading from this stream, an error is raised.

The returned Stream is read-only.

You must call either the Dispose method on the DataServiceStreamResponse or the Close method on the Stream. Otherwise, the network connection remains open and unavailable to other applications.

The GetResponseStream method is used to access the stream.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.