Support.GetItemData(Control, Int32) Yöntem

Tanım

Dikkat

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

Integer Bir veya ListBox öğesiyle ilişkilendirilmiş bir ComboBox alır.

public:
 static int GetItemData(System::Windows::Forms::Control ^ Control, int Index);
public static int GetItemData(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 int GetItemData(System.Windows.Forms.Control Control, int Index);
static member GetItemData : System.Windows.Forms.Control * int -> int
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member GetItemData : System.Windows.Forms.Control * int -> int
Public Function GetItemData (Control As Control, Index As Integer) As Integer

Parametreler

Control
Control

Bir ListBox veya ComboBox denetim.

Index
Int32

Integer dizinini ListBoxItemtemsil eden bir.

Döndürülenler

Integer Belirtilen ListBoxItemile ilişkili.

Öznitelikler

Açıklamalar

Visual Basic 6.0'da, veya denetimi için özelliği veya öğesiyle ilişkilendirmek için>Properties penceresi. Visual Basic'da ItemData özelliği artık yoktur; GetItemData ve SetItemData yöntemleri, ItemData davranışını öykünmek için kullanılabilir.

Note

Microsoft.VisualBasic.Compatibility.VB6 ad alanı içindeki işlevler ve nesneler, Visual Basic 6.0'dan Visual Basic 2008'e yükseltme araçları tarafından kullanılabilir. Çoğu durumda, bu işlevler ve nesneler .NET Framework'teki diğer ad alanlarına bulabileceğiniz işlevleri yineler. Bunlar yalnızca Visual Basic 6.0 kod modeli .NET Framework uygulamasından önemli ölçüde farklı olduğunda gereklidir.

Şunlara uygulanır