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

ItemData 대한 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)

매개 변수

Control
Control

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

Index
Int32

Index ListBoxItem.

ItemData
Int32

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

특성

설명

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 구현과 크게 다른 경우에만 필요합니다.

적용 대상