Freigeben über


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 eine ListBoxItem.

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

A ListBoxListBox oder ComboBox Steuerelement.

Index
Int32

Die Index des ListBoxItem.

ItemString
String

A String , das der ItemString Eigenschaft zugewiesen werden soll.

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: