DriveListBox.ValueMember 属性

定义

获取或设置一个属性,该属性将用作 DriveListBox 中项的实际值。Gets or sets the property to use as the actual value for the items in a DriveListBox.

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

一个 String,表示对象属性的名称并且包含在 DataSource 属性指定的集合中。A String that represents the name of an object property and is contained in the collection specified by the DataSource property. 默认值为空字符串("")。The default is an empty string ("").

属性

注解

不应为控件设置此属性 DriveListBox ; 仅提供此属性,因为 DriveListBox 控件继承自 ComboBoxThis property should not be set for the DriveListBox control; it is provided only because the DriveListBox control inherits from ComboBox.

备注

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.

适用于