Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

OpenAccess Enumeration

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

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

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

For more detailed information, see the Visual Basic topic OpenAccess Enumeration.

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 My.Computer.FileSystem Object.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.