Export (0) Print
Expand All

OpenAccess Enumeration

Indicates how to open a file when calling file-access functions.

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

'Declaration
Public Enumeration OpenAccess

Member nameDescription
DefaultRead and write access permitted. This is the default.
ReadRead access permitted.
ReadWriteRead and write access permitted.
WriteWrite access permitted.

When you call file access-related functions, you can use enumeration members in your code in place of the actual values.

The OpenAccess enumeration defines constants used to identify whether a file can be read from (Read), written to (Write), or both (ReadWrite). A file opened for Read access cannot be modified, only read from. The following table lists the OpenAccess enumeration members.

When performing file I/O operations, the My.Computer.FileSystem object provides greater performance and ease of use than legacy file I/O methods. For more information, see FileSystem object.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft