本文整理汇总了VB.NET中System.Web.Services.Description.MimeContentBinding类的典型用法代码示例。如果您正苦于以下问题:VB.NET MimeContentBinding类的具体用法?VB.NET MimeContentBinding怎么用?VB.NET MimeContentBinding使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MimeContentBinding类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: Main
' 导入命名空间
Imports System.Web.Services.Description
Namespace MimeContentBinding_work
Class MyMimeContentClass
Shared Sub Main()
Dim myServiceDescription As ServiceDescription = _
ServiceDescription.Read ("MimeContentSample_vb.wsdl")
' Get the Binding.
Dim myBinding As Binding = myServiceDescription.Bindings("b1")
' Get the first OperationBinding.
Dim myOperationBinding As OperationBinding = myBinding.Operations(0)
Dim myOutputBinding As OutputBinding = myOperationBinding.Output
Dim myServiceDescriptionFormatExtensionCollection As _
ServiceDescriptionFormatExtensionCollection = _
myOutputBinding.Extensions
' Find all MimeContentBinding objects in extensions.
Dim myMimeContentBindings As MimeContentBinding() = _
CType(myServiceDescriptionFormatExtensionCollection.FindAll( _
GetType(MimeContentBinding)), MimeContentBinding())
' Enumerate the array and display MimeContentBinding properties.
Dim myMimeContentBinding As MimeContentBinding
For Each myMimeContentBinding In myMimeContentBindings
Console.WriteLine("Type: " & myMimeContentBinding.Type)
Console.WriteLine("Part: " & myMimeContentBinding.Part)
Next myMimeContentBinding
Console.WriteLine("Namespace: " & MimeContentBinding.Namespace)
End Sub
End Class
End Namespace 'MimeContentBinding_work