Share via


FramingWriter.Close Method

Closes the framed message.

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

Usage

'Usage
Dim framingWriter1 As FramingWriter
framingWriter1.Close()

Syntax

'Declaration
Public Sub Close()
public void Close();
public:
void Close();
public void Close();
public function Close() : Void;

Remarks

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.

The stream is automatically closed when the FramingWriter.Close method is called, making it is unnecessary to call System.IO.Stream.Close . When writing in non-chunked mode, an empty terminating record with the payload format type set to None is written to the end of the framed message and automatically sent when the Close method is called. If writing in chunked mode, then the message end flags are automatically set on the last record when the Close method is called.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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