Udostępnij za pośrednictwem


IDataServiceStreamProvider.GetStreamETag Method

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

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

Syntax

'Declaration
Function GetStreamETag ( _
    entity As Object, _
    operationContext As DataServiceOperationContext _
) As String
'Usage
Dim instance As IDataServiceStreamProvider 
Dim entity As Object 
Dim operationContext As DataServiceOperationContext 
Dim returnValue As String 

returnValue = instance.GetStreamETag(entity, _
    operationContext)
string GetStreamETag(
    Object entity,
    DataServiceOperationContext operationContext
)
String^ GetStreamETag(
    Object^ entity, 
    DataServiceOperationContext^ operationContext
)
abstract GetStreamETag : 
        entity:Object * 
        operationContext:DataServiceOperationContext -> string
function GetStreamETag(
    entity : Object, 
    operationContext : DataServiceOperationContext
) : String

Parameters

  • entity
    Type: System.Object
    The entity that is a media link entry with a related media resource.

Return Value

Type: System.String
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.

See Also

Reference

IDataServiceStreamProvider Interface

System.Data.Services.Providers Namespace