本文整理匯總了VB.NET中System.Runtime.Remoting.MetadataServices.MetaData.ConvertTypesToSchemaToStream方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET MetaData.ConvertTypesToSchemaToStream方法的具體用法?VB.NET MetaData.ConvertTypesToSchemaToStream怎麽用?VB.NET MetaData.ConvertTypesToSchemaToStream使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。
在下文中一共展示了MetaData.ConvertTypesToSchemaToStream方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: Test
' 導入命名空間
Imports System.Runtime.Remoting.Metadata
Imports System.Runtime.Remoting.MetadataServices
Imports System.IO
Public Class Test
Class TestClass
Private [integer] As Integer
Public dFloatingPoint As Double = 5.1999
Public Property Int() As Integer
Get
Return [integer]
End Get
Set
[integer] = value
End Set
End Property
Public Sub Print()
Console.WriteLine("The double is equal to {0}.", dFloatingPoint)
End Sub
End Class
Public Shared Sub Main()
Dim types(4) As Type
Dim s As [String] = "a"
Dim i As Integer = - 5
Dim d As Double = 3.1415
Dim tc As New TestClass()
types(0) = s.GetType()
types(1) = i.GetType()
types(2) = d.GetType()
types(3) = tc.GetType()
Dim fs As New FileStream("test.xml", FileMode.OpenOrCreate)
MetaData.ConvertTypesToSchemaToStream(types, SdlType.Wsdl, fs)
End Sub
End Class
開發者ID:VB.NET開發者,項目名稱:System.Runtime.Remoting.MetadataServices,代碼行數:51,代碼來源:MetaData.ConvertTypesToSchemaToStream