Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / MemoryFile Class / ToArray Method


In This Topic
    ToArray Method
    In This Topic
    Writes the file contents to a System.Byte array, regardless of the state and position of opened streams.
    Syntax
    'Declaration
     
    Public Function ToArray() As Byte()
    'Usage
     
    Dim instance As MemoryFile
    Dim value() As Byte
     
    value = instance.ToArray()
    public byte[] ToArray()

    Return Value

    A new System.Byte array with the contents of the file. Or null.
    Remarks
    This method returns a copy of the contents of the file as a System.Byte array. If the file doesn't exist, the method returns null.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also