DataServiceStreamResponse.Stream Property

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

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

Syntax

'Declaration
Public ReadOnly Property Stream As Stream 
    Get
'Usage
Dim instance As DataServiceStreamResponse 
Dim value As Stream 

value = instance.Stream
public Stream Stream { get; }
public:
property Stream^ Stream {
    Stream^ get ();
}
member Stream : Stream
function get Stream () : Stream

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.

See Also

Reference

DataServiceStreamResponse Class

System.Data.Services.Client Namespace