Microsoft.VisualBasic.FileIO 命名空间

Microsoft.VisualBasic.FileIO 命名空间包含支持 Visual Basic 中的 My 文件系统对象的类型。 The Microsoft.VisualBasic.FileIO namespace contains types that support the My file system object in Visual Basic.

FileSystem

提供了用于处理驱动器、文件和目录的属性和方法。Provides properties and methods for working with drives, files, and directories.

MalformedLineException

ReadFields() 方法不能使用指定格式分析行时引发的异常。The exception that is thrown when the ReadFields() method cannot parse a row using the specified format.

SpecialDirectories

提供了用于访问经常引用的目录的属性。Provides properties for accessing commonly referenced directories.

TextFieldParser

提供分析结构化文本文件的方法和属性。Provides methods and properties for parsing structured text files.

枚举

DeleteDirectoryOption

指定当要删除的目录中含有文件或目录时应采取的操作。Specifies what should be done when a directory that is to be deleted contains files or directories.

FieldType

指示文本字段是分隔的还是固定宽度的。Indicates whether text fields are delimited or fixed width.

RecycleOption

指定文件是应永久删除还是放入“回收站”中。Specifies whether a file should be deleted permanently or placed in the Recycle Bin.

SearchOption

指定是搜索所有目录还是仅搜索顶级目录。Specifies whether to search all or only top-level directories.

UICancelOption

指定当用户在操作中单击“取消”时是否引发异常。Specifies whether an exception is thrown if the user clicks Cancel during an operation.

UIOption

指定当复制、删除或移动文件或目录时要显示的对话框。Specifies which dialog boxes to show when copying, deleting, or moving files or directories.

注解

有关详细信息My系统对象,请参阅FileSystemFor more information about the My system object, see FileSystem.

另请参阅