Share via


DataServiceContext.SetSaveStream Method (Object, String, Stream, Boolean, String)

Sets a binary data stream for the specified entity.

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

Syntax

'Declaration
Public Sub SetSaveStream ( _
    entity As Object, _
    name As String, _
    stream As Stream, _
    closeStream As Boolean, _
    contentType As String _
)
'Usage
Dim instance As DataServiceContext 
Dim entity As Object 
Dim name As String 
Dim stream As Stream 
Dim closeStream As Boolean 
Dim contentType As String

instance.SetSaveStream(entity, name, stream, _
    closeStream, contentType)
public void SetSaveStream(
    Object entity,
    string name,
    Stream stream,
    bool closeStream,
    string contentType
)
public:
void SetSaveStream(
    Object^ entity, 
    String^ name, 
    Stream^ stream, 
    bool closeStream, 
    String^ contentType
)
member SetSaveStream : 
        entity:Object * 
        name:string * 
        stream:Stream * 
        closeStream:bool * 
        contentType:string -> unit
public function SetSaveStream(
    entity : Object, 
    name : String, 
    stream : Stream, 
    closeStream : boolean, 
    contentType : String
)

Parameters

  • entity
    Type: System.Object
    The entity to which the binary stream belongs.
  • name
    Type: System.String
    The name of the binary stream to save.
  • contentType
    Type: System.String
    The Content-Type header value for the request message.

Remarks

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 SetSaveStream(Object, String, Stream, Boolean, String) method is used to save a named stream.

See Also

Reference

DataServiceContext Class

SetSaveStream Overload

System.Data.Services.Client Namespace