ImportCollection.Insert(Int32, Import) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 Import 0부터 시작하는 인덱스에서 지정된 인스턴스 ImportCollection 를 추가합니다.
public:
void Insert(int index, System::Web::Services::Description::Import ^ import);
public void Insert(int index, System.Web.Services.Description.Import import);
member this.Insert : int * System.Web.Services.Description.Import -> unit
Public Sub Insert (index As Integer, import As Import)
매개 변수
- index
- Int32
매개 변수를 삽입할 인덱스(0부터 시작하는 인덱스)입니다 import .
예외
예제
다음 예제에서는 Insert 메서드를 사용하는 방법을 보여 줍니다. 사용자 정의 CreateImport 메서드의 원본을 보려면 클래스에 포함된 예제를 Import 참조하세요.
myServiceDescription = ServiceDescription::Read( "StockQuoteService_cpp.wsdl" );
myServiceDescription->Imports->Insert( 0, CreateImport( "http://localhost/stockquote/definitions", "http://localhost/stockquote/stockquote_cpp.wsdl" ) );
myServiceDescription =
ServiceDescription.Read("StockQuoteService_cs.wsdl");
myServiceDescription.Imports.Insert(
0,CreateImport("http://localhost/stockquote/definitions",
"http://localhost/stockquote/stockquote_cs.wsdl"));
myServiceDescription = _
ServiceDescription.Read("StockQuoteService_vb.wsdl")
myServiceDescription.Imports.Insert(0, _
CreateImport("http://localhost/stockquote/definitions", _
"http://localhost/stockquote/stockquote_vb.wsdl"))
설명
컬렉션의 항목 수가 이미 컬렉션의 용량과 같으면 새 요소가 삽입되기 전에 내부 배열을 자동으로 다시 할당하여 용량을 두 배로 늘립니다.
매개 변수가 index 같 Count으면 매개 변수가 import .의 ImportCollection끝에 추가됩니다.
삽입 지점 뒤의 요소는 새 요소를 수용하기 위해 아래로 이동합니다.