DriveListBox.Drive 属性

定义

获取或设置运行时所选驱动器。

public:
 property System::String ^ Drive { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string Drive { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Drive : string with get, set
Public Property Drive As String

属性值

一个 String 指定所选驱动器的表达式。

属性

注解

属性的有效驱动器 Drive 包括运行时创建或刷新控件时存在或连接到系统的所有驱动器。 属性的 Drive 默认设置是当前驱动器。

注释

命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

适用于

另请参阅