Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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


Type: System.Object
The entity with the named stream being requested.
Type: System.Data.Services.Providers.ResourceProperty
A ResourceProperty object that represents the named stream.
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.