ImportCollection::Add Method (Import^)

 

Adds the specified Import to the end of the ImportCollection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
int Add(
	Import^ import
)

Parameters

import
Type: System.Web.Services.Description::Import^

The Import to add to the collection.

Return Value

Type: System::Int32

The zero-based index where the import parameter has been added.

The following example shows the use of the Add method. For more information about the CreateImport method used in the sample, see the example under the Import class.

ServiceDescription^ myServiceDescription = ServiceDescription::Read( "StockQuote_cpp.wsdl" );
myServiceDescription->Imports->Add( CreateImport( "http://localhost/stockquote/schemas", "http://localhost/stockquote/stockquote_cpp.xsd" ) );

.NET Framework
Available since 1.1
Return to top
Show: