DataServiceContext.GetReadStreamUri Method (Object)

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

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

Syntax

'Declaration
Public Function GetReadStreamUri ( _
    entity As Object _
) As Uri
'Usage
Dim instance As DataServiceContext 
Dim entity As Object 
Dim returnValue As Uri 

returnValue = instance.GetReadStreamUri(entity)
public Uri GetReadStreamUri(
    Object entity
)
public:
Uri^ GetReadStreamUri(
    Object^ entity
)
member GetReadStreamUri : 
        entity:Object -> Uri
public function GetReadStreamUri(
    entity : Object
) : Uri

Parameters

  • entity
    Type: System.Object
    The entity that has a related binary stream 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.

See Also

Reference

DataServiceContext Class

GetReadStreamUri Overload

System.Data.Services.Client Namespace