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 ein zugeordnetes String Element oder ComboBox Element ListBox 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

A ListBox oder ComboBox Steuerelement.

Index
Int32

Ein Integer Wert, der den Index des ListBoxItem.

Gibt zurück

The String associated with the specified ListBoxItem.

Attribute

Hinweise

Diese Funktion wird von den Upgradetools verwendet, um die Visual Basic 6.0-Eigenschaft List zu emulieren. Verwenden Sie in Visual Basic stattdessen die Eigenschaft oder Items die Items Eigenschaft.

Hinweis

Funktionen und Objekte im Microsoft.VisualBasic.Compatibility.VB6 Namespace werden von den Tools zum Upgrade von Visual Basic 6.0 auf Visual Basic 2008 bereitgestellt. In den meisten Fällen haben diese Funktionen und Objekte doppelte Funktionen, die Sie in anderen Namespaces im .NET Framework finden können. Sie sind nur erforderlich, wenn sich das Visual Basic 6.0-Codemodell erheblich von der .NET Framework-Implementierung unterscheidet.

Gilt für: