IDataServiceStreamProvider.GetStreamETag 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.

Returns the eTag of the media resource that belongs to the specified media link entry.

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

string GetStreamETag(
	object entity,
	DataServiceOperationContext operationContext
)

Parameters

entity
Type: System.Object

The entity that is a media link entry with a related media resource.

operationContext
Type: System.Data.Services.DataServiceOperationContext

The DataServiceOperationContext instance used by the data service to process the request.

Return Value

Type: System.String

eTag of the media resource associated with the entity.

The GetStreamETag method is called by the data service runtime to retrieve the eTag of the media resource that is associated with the entity.

You must implement the GetStreamETag method to enable the data service to manage concurrency for the media resource.

.NET Framework
Available since 3.5
Return to top
Show: