PowerTCP Mail for .NET
ToArray Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > EnhancedStream Class : ToArray Method




Returns the byte array representation of the Stream data.

Syntax

Visual Basic (Declaration) 
Public Overridable Function ToArray() As Byte()
Visual Basic (Usage)Copy Code
Dim instance As EnhancedStream
Dim value() As Byte
 
value = instance.ToArray()
C# 
public virtual byte[] ToArray()
Managed Extensions for C++ 
public: virtual byte[]* ToArray(); 
C++/CLI 
public:
virtual array<byte>^ ToArray(); 

Return Value

The byte array representation of the Stream data.

Remarks

Use this method to easily return the data in the stream as a byte array. Position should be reset after calling this method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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