Udostępnij za pośrednictwem


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.

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, _
    args As DataServiceRequestArgs _
)
'Usage
Dim instance As DataServiceContext 
Dim entity As Object 
Dim name As String 
Dim stream As Stream 
Dim closeStream As Boolean 
Dim args As DataServiceRequestArgs

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

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.

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, DataServiceRequestArgs) method is used to save a named stream.

See Also

Reference

DataServiceContext Class

SetSaveStream Overload

System.Data.Services.Client Namespace