ImportCollection.Add(Import) Metodo

Definizione

Aggiunge l'oggetto Import specificato alla fine di 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

Parametri

import
Import

Oggetto Import da aggiungere alla raccolta.

Restituisce

Indice in base zero in cui è stato aggiunto il parametro import.

Esempio

Nell'esempio Add seguente viene illustrato l'uso del metodo . Per altre informazioni sul CreateImport metodo usato nell'esempio, vedere l'esempio nella Import classe .

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

Si applica a