Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetReadStreamUri Method (Object, ResourceProperty, DataServiceOperationContext)
Collapse the table of content
Expand the table of content

IDataServiceStreamProvider2.GetReadStreamUri Method (Object, ResourceProperty, DataServiceOperationContext)

WCF Data Services 5.0

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)

Uri GetReadStreamUri(
	Object entity,
	ResourceProperty streamProperty,
	DataServiceOperationContext operationContext
)

Parameters

entity
Type: System.Object
The entity with the named stream being requested.
streamProperty
Type: System.Data.Services.Providers.ResourceProperty
A ResourceProperty object that represents the named stream.
operationContext
Type: System.Data.Services.DataServiceOperationContext
The DataServiceOperationContext instance used by the data service to process the request.

Return Value

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

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 null, the data service will construct a Uri for the named stream.

Show:
© 2015 Microsoft