DriveListBoxArray 构造函数

定义

初始化 DriveListBoxArray 类的新实例。Initializes a new instance of the DriveListBoxArray class.

重载

DriveListBoxArray()

初始化 DriveListBoxArray 类的新实例。Initializes a new instance of the DriveListBoxArray class.

DriveListBoxArray(IContainer)

初始化 DriveListBoxArray 类的新实例,并指定其容器。Initializes a new instance of the DriveListBoxArray class, specifying its container.

DriveListBoxArray()

初始化 DriveListBoxArray 类的新实例。Initializes a new instance of the DriveListBoxArray class.

public:
 DriveListBoxArray();
public DriveListBoxArray ();
Public Sub New ()

注解

在实例化时 DriveListBoxArray ,还必须调用 SetIndex 方法以在数组中创建初始元素。When you instantiate a DriveListBoxArray, you must also call the SetIndex method to create the initial element in the array.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于

DriveListBoxArray(IContainer)

初始化 DriveListBoxArray 类的新实例,并指定其容器。Initializes a new instance of the DriveListBoxArray class, specifying its container.

public:
 DriveListBoxArray(System::ComponentModel::IContainer ^ Container);
public DriveListBoxArray (System.ComponentModel.IContainer Container);
new Microsoft.VisualBasic.Compatibility.VB6.DriveListBoxArray : System.ComponentModel.IContainer -> Microsoft.VisualBasic.Compatibility.VB6.DriveListBoxArray
Public Sub New (Container As IContainer)

参数

Container
IContainer

将在其中承载控件数组的 IContainerThe IContainer where the control array will be hosted.

注解

在实例化时 DriveListBoxArray ,还必须调用 SetIndex 方法以在数组中创建初始元素。When you instantiate a DriveListBoxArray, you must also call the SetIndex method to create the initial element in the array.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于