Share via


Support.SetItemString(Control, Int32, String) Methode

Definition

Achtung

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

Legt die ItemString-Eigenschaft für ein ListBoxItem fest.

public:
 static void SetItemString(System::Windows::Forms::Control ^ Control, int Index, System::String ^ ItemString);
public static void SetItemString (System.Windows.Forms.Control Control, int Index, string ItemString);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static void SetItemString (System.Windows.Forms.Control Control, int Index, string ItemString);
static member SetItemString : System.Windows.Forms.Control * int * string -> unit
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member SetItemString : System.Windows.Forms.Control * int * string -> unit
Public Sub SetItemString (Control As Control, Index As Integer, ItemString As String)

Parameter

Control
Control

Ein ListBoxListBox-Steuerelement oder ComboBox-Steuerelement.

Index
Int32

Das Index des ListBoxItem.

ItemString
String

Ein String, der der ItemString-Eigenschaft zugewiesen werden soll.

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: