Share via


FramingWriter Constructor

Initializes a new instance of the FramingWriter class using the specified stream.

Namespace: Microsoft.Web.Services3.Messaging.Framing
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim stream As Stream
Dim framingWriter1 As New FramingWriter(stream)

Syntax

'Declaration
Public Sub New( _
    ByVal stream As Stream _
)
public FramingWriter(
    Stream stream
);
public:
FramingWriter(
    Stream^ stream
);
public FramingWriter(
    Stream stream
);
public function FramingWriter(
     stream : Stream
);

Parameters

  • stream
    The Stream to write the message to.

Exceptions

Exception type Condition
ArgumentNullException

stream is null.

ArgumentException

stream is not writable.

Remarks

The stream to which the framed message is to be written must be an open, writable stream.

When the NewRecord method is used to create the last record containing a positive payload length, Close will then be called and an additional empty last record will be appended to the framed message. This occurs, for example, when the size of the message is not known and its payload is being chunked.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

FramingWriter Class
FramingWriter Members
Microsoft.Web.Services3.Messaging.Framing Namespace