文件的打开模式未被设置为有效值

更新:2007 年 11 月

为文件的打开模式提供的值无效。下表显示了 OpenMode 枚举的有效值。

模式

1

OpenMode.Input

2

OpenMode.Output

4

OpenMode.Random

8

OpenMode.Append

32

OpenMode.Binary

更正此错误

  • 验证为文件的打开模式提供的值。

请参见

参考

OpenMode 枚举

My.Computer.FileSystem 对象

其他资源

读取文件 (Visual Basic)

写入文件 (Visual Basic)