IDataServiceStreamProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables binary data to be accessed and changed as a media resource that belongs to an entity that is a media link entry.
public interface class IDataServiceStreamProvider
public interface IDataServiceStreamProvider
type IDataServiceStreamProvider = interface
Public Interface IDataServiceStreamProvider
Remarks
The Open Data Protocol (OData) enables a binary data property of an entity exposed by a data service to be defined independently of an entry in a data feed by using a mechanism based on the following constructs:
Media resource - the binary large object data that is binary data, such as a video, audio, image or other media resources.
Media link entry - an AtomPub entry in a data feed that represents an entity and that has a reference to a related media resource.
For more information, see Streaming Provider.
Properties
StreamBufferSize |
Gets the size of the stream buffer. |
Methods
DeleteStream(Object, DataServiceOperationContext) |
Deletes the associated media resource when a media link entry is deleted. |
GetReadStream(Object, String, Nullable<Boolean>, DataServiceOperationContext) |
Returns a stream that contains the media resource data for the specified entity, which is a media link entry. |
GetReadStreamUri(Object, DataServiceOperationContext) |
Returns the URI that is used to request the media resource that belongs to the specified entity. |
GetStreamContentType(Object, DataServiceOperationContext) |
Returns the content type of the media resource that belongs to the specified entity. |
GetStreamETag(Object, DataServiceOperationContext) |
Returns the eTag of the media resource that belongs to the specified media link entry. |
GetWriteStream(Object, String, Nullable<Boolean>, DataServiceOperationContext) |
Returns the stream that the data service uses to write the binary data for the media resource received from the client that belongs to the specified entity. |
ResolveType(String, DataServiceOperationContext) |
Returns a namespace-qualified type name that represents the type that the data service runtime must create for the media link entry that is associated with the data stream for the media resource that is being inserted. |