| 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.Use this method to easily return the data in the stream as a byte array. Position should be reset after calling this method.
Target Platforms: Microsoft .NET Framework 2.0