本文整理汇总了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