ImportCollection.Add(Import) Yöntem

Tanım

Belirtilen ImportImportCollectiondeğerini sonuna ekler.

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

Parametreler

import
Import

Import koleksiyonuna eklenecek.

Döndürülenler

Parametresinin import eklendiği sıfır tabanlı dizin.

Örnekler

Aşağıdaki örnekte yönteminin kullanımı gösterilmektedir Add . Örnekte kullanılan yöntem hakkında CreateImport daha fazla bilgi için sınıfının altındaki Import örneğe bakın.

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"))

Şunlara uygulanır