Sdílet prostřednictvím


IDataServiceStreamProvider2 Interface

Enables binary data to be accessed and changed as a named stream that belongs to an entity type.

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

Syntax

'Declaration
Public Interface IDataServiceStreamProvider2 _
    Inherits IDataServiceStreamProvider
'Usage
Dim instance As IDataServiceStreamProvider2
public interface IDataServiceStreamProvider2 : IDataServiceStreamProvider
public interface class IDataServiceStreamProvider2 : IDataServiceStreamProvider
type IDataServiceStreamProvider2 =  
    interface 
        interface IDataServiceStreamProvider 
    end
public interface IDataServiceStreamProvider2 extends IDataServiceStreamProvider

The IDataServiceStreamProvider2 type exposes the following members.

Properties

  Name Description
Public property StreamBufferSize Gets the size of the stream buffer. (Inherited from IDataServiceStreamProvider.)

Top

Methods

  Name Description
Public method DeleteStream Deletes the associated media resource when a media link entry is deleted. (Inherited from IDataServiceStreamProvider.)
Public method 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. (Inherited from IDataServiceStreamProvider.)
Public method GetReadStream(Object, ResourceProperty, String, Nullable<Boolean>, DataServiceOperationContext) Returns a stream that contains the binary data for the named stream.
Public method GetReadStreamUri(Object, DataServiceOperationContext) Returns the URI that is used to request the media resource that belongs to the specified entity. (Inherited from IDataServiceStreamProvider.)
Public method GetReadStreamUri(Object, ResourceProperty, DataServiceOperationContext) Returns the URI that is used to request a specific named stream.
Public method GetStreamContentType(Object, DataServiceOperationContext) Returns the content-type of the media resource that belongs to the specified entity. (Inherited from IDataServiceStreamProvider.)
Public method GetStreamContentType(Object, ResourceProperty, DataServiceOperationContext) Returns the content-type of the specified named stream.
Public method GetStreamETag(Object, DataServiceOperationContext) Returns the eTag of the media resource that belongs to the specified media link entry. (Inherited from IDataServiceStreamProvider.)
Public method GetStreamETag(Object, ResourceProperty, DataServiceOperationContext) Returns the eTag of the specified named stream.
Public method 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. (Inherited from IDataServiceStreamProvider.)
Public method GetWriteStream(Object, ResourceProperty, String, Nullable<Boolean>, DataServiceOperationContext) Returns the stream that the data service uses to write the binary data received from the client as the specified named stream.
Public method ResolveType 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. (Inherited from IDataServiceStreamProvider.)

Top

See Also

Reference

System.Data.Services.Providers Namespace