ListItemCollection.Insert 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션의 지정된 인덱스 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)
매개 변수
설명
메서드를 Insert 사용하여 매개 변수로 ListItem 지정된 인덱스에서 컬렉션에 index 추가합니다. 이 메서드 구현은 매개 변수로 지정된 텍스트를 나타내는 메서드를 ListItem 만듭니다item.
Text 새 ListItem 속성에는 값item이 있고 속성에는 Value 값null이 있습니다. 그런 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)
매개 변수
설명
메서드를 Insert 사용하여 매개 변수로 ListItem 지정된 인덱스에서 컬렉션에 index 추가합니다. 이 메서드 구현은 매개 변수에 지정된 ListItem 값을 가져와 item 컬렉션의 지정된 인덱스에 삽입합니다.