Share via


Support.SetItemData(Control, Int32, Int32) 메서드

정의

주의

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

ItemDataListBoxItem 속성을 설정합니다.

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)

매개 변수

Control
Control

ListBox 또는 ComboBox 컨트롤입니다.

Index
Int32

IndexListBoxItem입니다.

ItemData
Int32

ItemData 속성에 할당할 Integer입니다.

특성

설명

Visual Basic 6.0에서 합니다 ItemData 속성에 대 한는 ListBox 또는 ComboBox 에서 디자인 타임에 컨트롤을 설정할 수는 속성 연결할 창은 Integer 사용 하 여를 ListBox 또는 ComboBox 항목입니다. Visual Basic의 경우는 ItemData 속성이 더 이상 존재 하지 않으면 합니다 GetItemDataSetItemData 메서드 동작을 에뮬레이트하는 데 사용할 수 없습니다 ItemData합니다.

참고

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

적용 대상