Support.SetItemString(Control, Int32, String) Método

Definição

Cuidado

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

Define a propriedade ItemString de um ListBoxItem.Sets the ItemString property for a ListBoxItem.

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)

Parâmetros

Control
Control

Um controle ListBoxListBox ou ComboBox.A ListBoxListBox or ComboBox control.

Index
Int32

O Index do ListBoxItem.The Index of the ListBoxItem.

ItemString
String

Um String a ser atribuído à propriedade ItemString.A String to assign to the ItemString property.

Atributos

Comentários

Essa função é usada pelas ferramentas de atualização para emular o Visual Basic 6.0 List propriedade.This function is used by the upgrade tools to emulate the Visual Basic 6.0 List property. No Visual Basic, use o Items ou Items propriedade em vez disso.In Visual Basic, use the Items or Items property instead.

Observação

Funções e os objetos no namespace Microsoft.VisualBasic.Compatibility.VB6 são fornecidos para uso pelas ferramentas para atualização do Visual Basic 6.0 para o Visual Basic 2008.Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. Na maioria dos casos, essas funções e objetos duplicam a funcionalidade que é possível encontrar em outros namespaces no .NET FrameworkIn most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. Eles apenas são necessários quando o modelo de código do Visual Basic 6.0 difere significativamente da implementação do .NET Framework.They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Aplica-se a