Udostępnij za pośrednictwem


IDataServiceStreamProvider.DeleteStream Method

Deletes the associated media resource when a media link entry is deleted.

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

Syntax

'Declaration
Sub DeleteStream ( _
    entity As Object, _
    operationContext As DataServiceOperationContext _
)
'Usage
Dim instance As IDataServiceStreamProvider 
Dim entity As Object 
Dim operationContext As DataServiceOperationContext

instance.DeleteStream(entity, operationContext)
void DeleteStream(
    Object entity,
    DataServiceOperationContext operationContext
)
void DeleteStream(
    Object^ entity, 
    DataServiceOperationContext^ operationContext
)
abstract DeleteStream : 
        entity:Object * 
        operationContext:DataServiceOperationContext -> unit
function DeleteStream(
    entity : Object, 
    operationContext : DataServiceOperationContext
)

Parameters

  • entity
    Type: System.Object
    The media link entry that is deleted.

Exceptions

Exception Condition
ArgumentNullException

When entity or operationContext are nulla null reference (Nothing in Visual Basic).

ArgumentException

When entity is not an entity that has a binary property to stream.

DataServiceException

When the stream associated with the entity cannot be deleted.

Remarks

The DeleteStream method provides the implementation to delete a media resource when its associated media link entry is deleted from the data service. For more information, see Streaming Provider (WCF Data Services).

See Also

Reference

IDataServiceStreamProvider Interface

System.Data.Services.Providers Namespace