Поделиться через


DataServiceContext.GetReadStreamUri Method

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

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)

Syntax

'Declaration
Public Function GetReadStreamUri ( _
    entity As Object _
) As Uri
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.

Exceptions

Exception Condition
ArgumentNullException

If the entity specified is nulla null reference (Nothing in Visual Basic).

ArgumentException

The entity is not tracked by this DataServiceContext.

Remarks

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.

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.