Export (0) Print
Expand All

DataServiceContext.GetReadStreamUri Method

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.

This topic describes new functionality in ADO.NET Data Services that is available as an update to the .NET Framework version 3.5 Service Pack 1. You can download and install the update from the Microsoft Download Center.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Community Additions

ADD
Show:
© 2014 Microsoft