DriveListBox.Items[] 屬性

定義

取得包含在 的 DriveListBox項目。

多載

名稱 Description
Items

取得包含在 的 DriveListBox項目。

Items[Int32]

取得指定索引的 DriveListBox項目。

Items

取得包含在 的 DriveListBox項目。

public:
 property System::Windows::Forms::ComboBox::ObjectCollection ^ Items { System::Windows::Forms::ComboBox::ObjectCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ComboBox.ObjectCollection Items { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Items : System.Windows.Forms.ComboBox.ObjectCollection
Public ReadOnly Property Items As ComboBox.ObjectCollection

屬性值

A ListBox.ObjectCollection 代表 中的項目 DirListBox

屬性

備註

使用此屬性可取得目前顯示在 DriveListBox. 中的磁碟機清單。

Note

命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於

Items[Int32]

取得指定索引的 DriveListBox項目。

public:
 property System::String ^ Items[int] { System::String ^ get(int Index); };
[System.ComponentModel.Browsable(false)]
public string Items[int Index] { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Items(int) : string
Public ReadOnly Property Items(Index As Integer) As String

參數

Index
Int32

清單中特定項目的編號。

屬性值

String A 包含指定Index磁碟機名稱的 。

屬性

備註

利用此屬性取得 磁碟機名稱 DriveListBox

Note

命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於