ListItemCollection.Insert 메서드

정의

컬렉션의 지정된 인덱스 ListItem 위치에 삽입합니다.

오버로드

Name Description
Insert(Int32, String)

ListItem 컬렉션의 지정된 인덱스 위치를 나타내는 문자열을 삽입합니다.

Insert(Int32, ListItem)

컬렉션에 지정된 ListItem 인덱스 위치를 삽입합니다.

Insert(Int32, String)

ListItem 컬렉션의 지정된 인덱스 위치를 나타내는 문자열을 삽입합니다.

public:
 void Insert(int index, System::String ^ item);
public void Insert(int index, string item);
member this.Insert : int * string -> unit
Public Sub Insert (index As Integer, item As String)

매개 변수

index
Int32

를 삽입할 컬렉션의 위치입니다 ListItem.

item
String

String 컬렉션에 삽입할 항목을 나타내는 A입니다.

설명

메서드를 Insert 사용하여 매개 변수로 ListItem 지정된 인덱스에서 컬렉션에 index 추가합니다. 이 메서드 구현은 매개 변수로 지정된 텍스트를 나타내는 메서드를 ListItem 만듭니다item. TextListItem 속성에는 값item이 있고 속성에는 Valuenull이 있습니다. 그런 ListItem 다음 컬렉션에서 지정된 인덱스로 삽입됩니다.

추가 정보

적용 대상

Insert(Int32, ListItem)

컬렉션에 지정된 ListItem 인덱스 위치를 삽입합니다.

public:
 void Insert(int index, System::Web::UI::WebControls::ListItem ^ item);
public void Insert(int index, System.Web.UI.WebControls.ListItem item);
member this.Insert : int * System.Web.UI.WebControls.ListItem -> unit
Public Sub Insert (index As Integer, item As ListItem)

매개 변수

index
Int32

를 삽입할 컬렉션의 위치입니다 ListItem.

item
ListItem

ListItem 컬렉션에 추가할 개체입니다.

설명

메서드를 Insert 사용하여 매개 변수로 ListItem 지정된 인덱스에서 컬렉션에 index 추가합니다. 이 메서드 구현은 매개 변수에 지정된 ListItem 값을 가져와 item 컬렉션의 지정된 인덱스에 삽입합니다.

추가 정보

적용 대상