IDataServiceStreamProvider.DeleteStream Method

Definition

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

public:
 void DeleteStream(System::Object ^ entity, System::Data::Services::DataServiceOperationContext ^ operationContext);
public void DeleteStream (object entity, System.Data.Services.DataServiceOperationContext operationContext);
abstract member DeleteStream : obj * System.Data.Services.DataServiceOperationContext -> unit
Public Sub DeleteStream (entity As Object, operationContext As DataServiceOperationContext)

Parameters

entity
Object

The media link entry that is deleted.

operationContext
DataServiceOperationContext

The DataServiceOperationContext instance that processes the request.

Exceptions

When entity or operationContext is null.

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

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.

Applies to