Aracılığıyla paylaş


Support.SetItemString(Control, Int32, String) 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

bir ListBoxItemiçin ItemString özelliğini ayarlar.

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

Parametreler

Control
Control

A ListBoxListBox veya ComboBox denetim.

Index
Int32

öğesinin Index .ListBoxItem

ItemString
String

String Özelliğine atanacak AItemString.

Öznitelikler

Açıklamalar

Bu işlev, yükseltme araçları tarafından Visual Basic 6.0 List özelliğine öykünmek için kullanılır. Visual Basic'te bunun yerine or Items özelliğini kullanınItems.

Not

Microsoft.VisualBasic.Compatibility.VB6 ad alanındaki işlevler ve nesneler, Visual Basic 6.0’dan Visual Basic 2008’e yükseltme araçlarının kullanımı için sağlanır. Çoğu durumda, bu işlevler ve nesneler .NET Framework’teki diğer ad alanlarında bulabileceğiniz işlevlerin birer yinelemesidir. Bunlar yalnızca, Visual Basic 6.0 kod modelinin .NET Framework uygulamasından önemli ölçüde farklı olduğu durumlarda gereklidir.

Şunlara uygulanır