Support.GetItemData(Control, Int32) 메서드

정의

주의

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

Integer 또는 ComboBox 항목과 연결된 항목을 ListBox 가져옵니다.

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

매개 변수

Control
Control

A ListBox 또는 ComboBox 컨트롤입니다.

Index
Int32

Integer 의 인덱스를 나타내는 값입니다ListBoxItem.

반품

Integer 지정된 ListBoxItem.

특성

설명

Visual Basic 6.0에서는 디자인 타임에 또는 컨트롤에 대한 속성을 프로퍼티 창에서 또는 항목을 연결합니다. Visual Basic ItemData 속성이 더 이상 존재하지 않습니다. GetItemDataSetItemData 메서드를 사용하여 ItemData 동작을 에뮬레이트할 수 있습니다.

메모

Microsoft.VisualBasic.Compatibility.VB6 네임스페이스의 함수 및 개체는 Visual Basic 6.0에서 Visual Basic 2008로 업그레이드하는 도구에서 사용할 수 있도록 제공됩니다. 대부분의 경우 이러한 함수와 개체는 .NET Framework의 다른 네임스페이스에서 찾을 수 있는 기능을 복제합니다. Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 필요합니다.

적용 대상