PowerTCP Mail for .NET
Write(String) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > SegmentedStream Class > Write Method : Write(String) Method




buffer
The storage location of the data to be sent.
Write a string to the stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Write( _
   ByVal buffer As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As SegmentedStream
Dim buffer As String
 
instance.Write(buffer)
C# 
public void Write( 
   string buffer
)
Managed Extensions for C++ 
public: void Write( 
   string* buffer
) 
C++/CLI 
public:
void Write( 
   String^ buffer
) 

Parameters

buffer
The storage location of the data to be sent.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the stream is not Writeable.

Remarks

This method writes a string to the stream and returns from complete. Since this method writes a string (doing a byte array conversion behind-the-scenes using the Object.Charset to convert unicode characters to bytes) to the stream, it is useful for such purposes as sending protocol commands to a server.

Use the CanWrite property to determine whether the current instance supports writing.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.