ImportCollection.Add(Import) 메서드

정의

지정된 Import 값을 .의 ImportCollection끝에 추가합니다.

public:
 int Add(System::Web::Services::Description::Import ^ import);
public int Add(System.Web.Services.Description.Import import);
member this.Add : System.Web.Services.Description.Import -> int
Public Function Add (import As Import) As Integer

매개 변수

import
Import

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

반품

매개 변수가 import 추가된 인덱스(0부터 시작하는 인덱스)입니다.

예제

다음 예제에서는 메서드의 사용을 보여 있습니다 Add . 샘플에서 사용되는 메서드에 CreateImport 대한 자세한 내용은 클래스 아래의 예제를 Import 참조하세요.

ServiceDescription^ myServiceDescription = ServiceDescription::Read( "StockQuote_cpp.wsdl" );
myServiceDescription->Imports->Add( CreateImport( "http://localhost/stockquote/schemas", "http://localhost/stockquote/stockquote_cpp.xsd" ) );
ServiceDescription myServiceDescription =
   ServiceDescription.Read("StockQuote_cs.wsdl");
myServiceDescription.Imports.Add(
   CreateImport("http://localhost/stockquote/schemas",
   "http://localhost/stockquote/stockquote_cs.xsd"));
Dim myServiceDescription As ServiceDescription = _
   ServiceDescription.Read("StockQuote_vb.wsdl")
myServiceDescription.Imports.Add( _
   CreateImport("http://localhost/stockquote/schemas", _
   "http://localhost/stockquote/stockquote_vb.xsd"))

적용 대상