Freigeben über


Support.GetItemString(Control, Int32) Methode

Definition

Achtung

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Ruft einen einem String-Element oder ListBox-Element zugeordneten ComboBox ab.

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

Parameter

Control
Control

Ein ListBox-Steuerelement oder ComboBox-Steuerelement.

Index
Int32

Ein Integer, der den Index von ListBoxItem darstellt.

Gibt zurück

Die String, die dem angegebenen ListBoxItem zugeordnet ist.

Attribute

Hinweise

Diese Funktion wird durch die Aktualisierungstools verwendet, um Visual Basic 6.0 zu emulieren List Eigenschaft. Verwenden Sie in Visual Basic die Items oder Items Eigenschaft stattdessen.

Hinweis

Funktionen und Objekte im Microsoft.VisualBasic.Compatibility.VB6-Namespace werden in den Tools zur Aktualisierung von Visual Basic 6.0 auf Visual Basic 2008 bereitgestellt. In den meisten Fällen duplizieren diese Funktionen und Objekte Funktionen, die Sie in anderen Namespaces von .NET Framework finden. Diese sind nur notwendig, wenn das Visual Basic 6.0-Codemodell sich maßgeblich von der .NET Framework-Implementierung unterscheidet.

Gilt für: