ImportCollection.Add(Import) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 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 추가된 인덱스(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"))