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 Function Add (
	import As Import
) As Integer

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.

Dim myServiceDescription As ServiceDescription = _
   ServiceDescription.Read("StockQuote_vb.wsdl")
myServiceDescription.Imports.Add( _
   CreateImport("http://localhost/stockquote/schemas", _
   "http://localhost/stockquote/stockquote_vb.xsd"))

.NET Framework
Available since 1.1
Return to top
Show: