Indicates how to open a file when calling file-access functions.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
When you call file access–related functions, you can use enumeration members in your code in place of the actual values.
The OpenShare enumeration defines constants that specify whether or not other processes can access the file while your application has it open. The following table lists the OpenShare 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.