DataServiceContext.SetSaveStream Method (Object, String, Stream, Boolean, DataServiceRequestArgs)
Sets a named binary data stream that belongs to the specified entity, with the specified headers in the request message.
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
public void SetSaveStream( Object entity, string name, Stream stream, bool closeStream, DataServiceRequestArgs args )
- Type: System.Object
The entity to which the binary stream belongs.
- Type: System.String
The name of the binary stream to save.
- Type: System.Boolean
A Boolean value that determines whether the data stream is closed when the SaveChanges method is completed.
- Type: System.Data.Services.Client.DataServiceRequestArgs
An instance of the DataServiceRequestArgs class that contains settings for the HTTP request message.
The SetSaveStream method saves a binary stream that is a named Media Resource that belongs to the entity, which is called a Media Link Entry.
The method is used to save a named stream.