Support.GetItemString(Control, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
public:
static System::String ^ GetItemString(System::Windows::Forms::Control ^ Control, int Index);
public static string GetItemString(System.Windows.Forms.Control Control, int Index);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static string GetItemString(System.Windows.Forms.Control Control, int Index);
static member GetItemString : System.Windows.Forms.Control * int -> string
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member GetItemString : System.Windows.Forms.Control * int -> string
Public Function GetItemString (Control As Control, Index As Integer) As String
参数
- Index
- Int32
一个 Integer ,表示 . 的 ListBoxItem索引。
返回
与 String 指定的 ListBoxItem.
- 属性
注解
升级工具使用此函数来模拟 Visual Basic 6.0 List 属性。 在 Visual Basic 中,改用 Items 或 Items 属性。
注释
命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 2008 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,才需要它们。