Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / AbstractFile Class / OpenRead Method / OpenRead() Method


In This Topic
    OpenRead() Method
    In This Topic
    Opens the file for reading.
    Syntax
    'Declaration
     
    Public Overloads Function OpenRead() As Stream
    'Usage
     
    Dim instance As AbstractFile
    Dim value As Stream
     
    value = instance.OpenRead()
    public Stream OpenRead()

    Return Value

    A System.IO.Stream object that can be used to read data from the file.
    Remarks

    The returned stream is guaranteed to be readable, but may or may not be seekable.

    The file will be opened with System.IO.FileShare.Read shared access.

    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