The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataServiceContext.GetReadStreamUri Method (Object)


Gets the URI that is used to return binary property data as a data stream.

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

public Uri GetReadStreamUri(
	object entity


Type: System.Object

The entity that has the binary property to retrieve.

Return Value

Type: System.Uri

The read URI of the binary data stream.

Exception Condition

If the entity specified is null.


The entity is not tracked by this DataServiceContext.

When the specified entity is a Media Link Entry, the GetReadStreamUri method returns a URI that is used to access the content of the Media Resource.

This URI is only used to in a GET request to read the content of a Media Resource. It may not respond to POST, PUT, or DELETE requests.

.NET Framework
Available since 3.5
Available since 4.0
Return to top