本文整理匯總了VB.NET中System.Web.Services.Description.ServiceDescription.Imports屬性的典型用法代碼示例。如果您正苦於以下問題:VB.NET ServiceDescription.Imports屬性的具體用法?VB.NET ServiceDescription.Imports怎麽用?VB.NET ServiceDescription.Imports使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類System.Web.Services.Description.ServiceDescription
的用法示例。
在下文中一共展示了ServiceDescription.Imports屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: ServiceDescription
Dim myServiceDescription As New ServiceDescription()
myServiceDescription = _
ServiceDescription.Read("ServiceDescription_Imports_Input_VB.wsdl")
Dim myImportCollection As ImportCollection = myServiceDescription.Imports
' Create an Import.
Dim myImport As New Import()
myImport.Namespace = myServiceDescription.TargetNamespace
' Set the location for the Import.
myImport.Location = "http://www.contoso.com/"
myImportCollection.Add(myImport)
myServiceDescription.Write("ServiceDescription_Imports_Output_VB.wsdl")
myImportCollection.Clear()
myServiceDescription = _
ServiceDescription.Read("ServiceDescription_Imports_Output_VB.wsdl")
myImportCollection = myServiceDescription.Imports
Console.WriteLine( _
"The Import elements added to the ImportCollection are: ")
Dim i As Integer
For i = 0 To myImportCollection.Count - 1
Console.WriteLine((i + 1).ToString() & ". " & _
myImportCollection(i).Location)
Next i