Aracılığıyla paylaş


ImportCollection.Add(Import) Yöntem

Tanım

Belirtilen Import ImportCollectionöğesini 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 öğesini seçin.

Döndürülenler

Int32

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