Export (0) Print
Expand All

IDataServiceStreamProvider Interface

Enables binary data to be accessed and changed as a media resource that belongs to an entity that is a media link entry.

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

public interface IDataServiceStreamProvider

The IDataServiceStreamProvider type exposes the following members.

  NameDescription
Public propertyStreamBufferSizeGets the size of the stream buffer.
Top

  NameDescription
Public methodDeleteStreamDeletes the associated media resource when a media link entry is deleted.
Public methodGetReadStreamReturns a stream that contains the media resource data for the specified entity, which is a media link entry.
Public methodGetReadStreamUriReturns the URI that is used to request the media resource that belongs to the specified entity.
Public methodGetStreamContentTypeReturns the content type of the media resource that belongs to the specified entity.
Public methodGetStreamETagReturns the eTag of the media resource that belongs to the specified media link entry.
Public methodGetWriteStreamReturns 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.
Public methodResolveTypeReturns 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.
Top

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 (WCF Data Services).

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft