ImportCollection.Add(Import) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified Import to the end of the 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
Parameters
Returns
The zero-based index where the import
parameter has been added.
Examples
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" ) );
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"))
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา