This topic has not yet been rated - Rate this topic

DataServiceContext.GetReadStreamUri Method

July 26, 2012

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
)

Parameters

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.
ExceptionCondition
ArgumentNullException

If the entity specified is null.

ArgumentException

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 used in a GET request only to read the content of a Media Resource. It cannot respond to POST, PUT, or DELETE requests.

Windows Phone OS

Supported in: 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.