Επεξεργασία

Κοινή χρήση μέσω


IDataServiceStreamProvider.GetStreamETag Method

Definition

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

public:
 System::String ^ GetStreamETag(System::Object ^ entity, System::Data::Services::DataServiceOperationContext ^ operationContext);
public string GetStreamETag (object entity, System.Data.Services.DataServiceOperationContext operationContext);
abstract member GetStreamETag : obj * System.Data.Services.DataServiceOperationContext -> string
Public Function GetStreamETag (entity As Object, operationContext As DataServiceOperationContext) As String

Parameters

entity
Object

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

operationContext
DataServiceOperationContext

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

Returns

eTag of the media resource associated with the entity.

Remarks

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.

Applies to