Support.SetItemData(Control, Int32, Int32) 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 ItemData Eigenschaft für eine ListBoxItem.

public:
 static void SetItemData(System::Windows::Forms::Control ^ Control, int Index, int ItemData);
public static void SetItemData(System.Windows.Forms.Control Control, int Index, int ItemData);
[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 SetItemData(System.Windows.Forms.Control Control, int Index, int ItemData);
static member SetItemData : System.Windows.Forms.Control * int * int -> 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 SetItemData : System.Windows.Forms.Control * int * int -> unit
Public Sub SetItemData (Control As Control, Index As Integer, ItemData As Integer)

Parameter

Control
Control

A ListBox oder ComboBox Steuerelement.

Index
Int32

Die Index des ListBoxItem.

ItemData
Int32

Eine Integer , die der ItemData Eigenschaft zugewiesen werden soll.

Attribute

Hinweise

In Visual Basic 6.0 könnte die eigenschaft für eine oder control zur Entwurfszeit im Eigenschaften Fenster, um ein einem element oder zuzuordnen. In Visual Basic ist die eigenschaft ItemData nicht mehr vorhanden; die Methoden GetItemData und SetItemData können verwendet werden, um das Verhalten von ItemData zu emulieren.

Note

Funktionen und Objekte im namespace Microsoft.VisualBasic.Compatibility.VB6 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: