Returns a stream that contains the media resource data for the specified entity, which is a media link entry.
Assembly: System.Data.Services (in System.Data.Services.dll)
'Declaration Function GetReadStream ( _ entity As Object, _ etag As String, _ checkETagForEquality As Nullable(Of Boolean), _ operationContext As DataServiceOperationContext _ ) As Stream
- Type: System.Object
The entity that is a media link entry with a related media resource.
- Type: System.String
The eTag value sent as part of the HTTP request that is sent to the data service.
- Type: System.Nullable(Of Boolean)
A nullable Boolean value that determines whether the data service must the type of eTag that is used.
eTag is the value of an If-Match or If-None-Match header. The following values are supported:
true - when the eTag represents an If-Match header.
false - when the eTag represents an If-None-Match header.
Nothing - when an If-Match or If-None-Match header is not present in the request.
The method is called by the data service runtime to acquire the stream that the data service returns to the client when the client requests the media resource for the specified entity, which is a media link entry. For more information, see Streaming Provider (WCF Data Services).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.