Share via


IDataServiceStreamProvider2.GetReadStreamUri Method (Object, ResourceProperty, DataServiceOperationContext)

Returns the URI that is used to request a specific named stream.

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

Syntax

'Declaration
Function GetReadStreamUri ( _
    entity As Object, _
    streamProperty As ResourceProperty, _
    operationContext As DataServiceOperationContext _
) As Uri
'Usage
Dim instance As IDataServiceStreamProvider2 
Dim entity As Object 
Dim streamProperty As ResourceProperty 
Dim operationContext As DataServiceOperationContext 
Dim returnValue As Uri 

returnValue = instance.GetReadStreamUri(entity, _
    streamProperty, operationContext)
Uri GetReadStreamUri(
    Object entity,
    ResourceProperty streamProperty,
    DataServiceOperationContext operationContext
)
Uri^ GetReadStreamUri(
    Object^ entity, 
    ResourceProperty^ streamProperty, 
    DataServiceOperationContext^ operationContext
)
abstract GetReadStreamUri : 
        entity:Object * 
        streamProperty:ResourceProperty * 
        operationContext:DataServiceOperationContext -> Uri
function GetReadStreamUri(
    entity : Object, 
    streamProperty : ResourceProperty, 
    operationContext : DataServiceOperationContext
) : Uri

Parameters

  • entity
    Type: System.Object
    The entity with the named stream being requested.

Return Value

Type: System.Uri
A Uri value that is used to request the named binary data stream.

Remarks

The GetReadStreamUri method is called by the data service runtime to obtain the URI that clients should use when they make retrieve (i.e., GET) requests for the named stream.

When the method implementation returns nulla null reference (Nothing in Visual Basic), the data service will construct a Uri for the named stream.

See Also

Reference

IDataServiceStreamProvider2 Interface

GetReadStreamUri Overload

System.Data.Services.Providers Namespace