Support.SetItemString(Control, Int32, String) Metod

Definition

Varning

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

Anger egenskapen ItemString för en 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)

Parametrar

Control
Control

A ListBoxListBox eller ComboBox kontroll.

Index
Int32

Index för ListBoxItem.

ItemString
String

A String för att tilldela egenskapen ItemString .

Attribut

Kommentarer

Den här funktionen används av uppgraderingsverktygen för att emulera egenskapen Visual Basic 6.0 List. I Visual Basic använder du egenskapen Items eller Items i stället.

Note

Funktioner och objekt i namnområdet Microsoft.VisualBasic.Compatibility.VB6 tillhandahålls för användning av verktygen för uppgradering från Visual Basic 6.0 till Visual Basic 2008. I de flesta fall duplicerar dessa funktioner och objekt funktioner som du kan hitta i andra namnområden i .NET Framework. De är bara nödvändiga när kodmodellen Visual Basic 6.0 skiljer sig avsevärt från implementeringen av .NET Framework.

Gäller för