DeleteStream Method
Collapse the table of content
Expand the table of content

IDataServiceStreamProvider.DeleteStream Method (Object, DataServiceOperationContext)

 

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

Namespace:   System.Data.Services.Providers
Assembly:  System.Data.Services (in System.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.

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

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft