Share via


DirListBox.ValueMember 属性

定义

获取或设置一个属性,该属性将用作 ListControl 中项的实际值。

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

属性值

一个 String,表示 DataSource 属性指定的集合中所包含对象属性的名称。 默认值为空字符串("")。

属性

注解

不应为 DirListBox 控件设置此属性;仅因为 DirListBox 控件继承自 ListBox,才提供此属性。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。

适用于

另请参阅