FileListBox.FileName 屬性

定義

取得或設定在 FileListBox 中選取檔案的檔案名稱。

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

屬性值

String,包含選取檔案的檔案名稱。

屬性

備註

FileName在運行時間設定 屬性將只會在 中FileListBox顯示該檔案。

注意

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

適用於

另請參閱