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)

void DeleteStream(
	Object entity,
	DataServiceOperationContext operationContext
)

Parameters

entity
Type: System.Object
The media link entry that is deleted.
operationContext
Type: System.Data.Services.DataServiceOperationContext
The DataServiceOperationContext instance that processes the request.

ExceptionCondition
ArgumentNullException

When entity or operationContext are null.

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.

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).

Show: