IDataServiceStreamProvider.DeleteStream Method (Object, DataServiceOperationContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: