本文整理汇总了VB.NET中System.ServiceModel.EnvelopeVersion类的典型用法代码示例。如果您正苦于以下问题:VB.NET EnvelopeVersion类的具体用法?VB.NET EnvelopeVersion怎么用?VB.NET EnvelopeVersion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了EnvelopeVersion类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的VB.NET代码示例。
示例1: Main
' 导入命名空间
Imports System.Collections.Generic
Imports System.ServiceModel
Imports System.Text
Namespace CS
Module Module1
Sub Main(ByVal args() As String)
' MessageVersion
Dim envS11 As EnvelopeVersion = EnvelopeVersion.Soap11
Dim nextDestS11 As String = envS11.NextDestinationActorValue
Dim ultDestsS11() As String = envS11.GetUltimateDestinationActorValues()
Dim ultS11 As String = ultDestsS11(0)
Dim toStrS11 As String = envS11.ToString()
Dim envS12 As EnvelopeVersion = EnvelopeVersion.Soap12
Dim envNotSOAP As EnvelopeVersion = EnvelopeVersion.None
Dim nextDestS12 As String = envS12.NextDestinationActorValue
Dim ultDestsS12() As String = envS12.GetUltimateDestinationActorValues()
Dim ultS12 As String = ultDestsS12(1)
Dim toStrS12 As String = envS12.ToString()
Dim envNone As EnvelopeVersion = EnvelopeVersion.None
Dim nextDestNone As String = envNone.NextDestinationActorValue
'The following code throws a System.ArgumentReferenceException.
'The object reference is not set to an instance of an object
' string[] ultDestsNone = envNone.GetUltimateDestinationActorValues();
Dim toStrNone As String = envNone.ToString()
'EnvelopeVersions
Console.WriteLine("EnvelopeVersion.Soap11: {0}", envS11)
Console.WriteLine("EnvelopeVersion.Soap12: {0}", envS12)
Console.WriteLine("EnvelopeVersion.None: {0}", envNone)
Console.WriteLine()
'NextDestination
Console.WriteLine("NextDest EnvelopeVersion.Soap11: {0}", nextDestS11)
Console.WriteLine("NextDest EnvelopeVersion.Soap12: {0}", nextDestS12)
Console.WriteLine("NextDest EnvelopeVersion.None: {0}", nextDestNone)
Console.WriteLine()
'UltimateDestinations
Console.WriteLine("UltDest EnvelopeVersion.Soap11: {0}", ultS11)
Console.WriteLine("UltDest EnvelopeVersion.Soap12: {0}", ultS12)
'Console.WriteLine("UltDest EnvelopeVersion.None: {0}", ultDestsNone);
Console.WriteLine()
'ToString
Console.WriteLine("EnvelopeVersion.Soap11.ToString(): {0}", toStrS11)
Console.WriteLine("EnvelopeVersion.Soap11.ToString(): {0}", toStrS12)
Console.WriteLine("EnvelopeVersion.Soap11.ToString(): {0}", toStrNone)
Console.WriteLine()
End Sub
End Module
End Namespace
'
' *
' *
' *
'Output:
'EnvelopeVersion.Soap11: Soap11 (http://schemas.xmlsoap.org/soap/envelope/)
'EnvelopeVersion.Soap12: Soap12 (http://www.w3.org/2003/05/soap-envelope)
'EnvelopeVersion.None: EnvelopeNone (http://schemas.microsoft.com/ws/2005/05/envelope/none)
'
'NextDest EnvelopeVersion.Soap11: http://schemas.xmlsoap.org/soap/actor/next
'NextDest EnvelopeVersion.Soap12: http://www.w3.org/2003/05/soap-envelope/role/next
'NextDest EnvelopeVersion.None:
'
'UltDest EnvelopeVersion.Soap11:
'UltDest EnvelopeVersion.Soap12:
'
'EnvelopeVersion.Soap11.ToString(): Soap11 (http://schemas.xmlsoap.org/soap/envelope/)
'EnvelopeVersion.Soap11.ToString(): Soap12 (http://www.w3.org/2003/05/soap-envelope)
'EnvelopeVersion.Soap11.ToString(): EnvelopeNone (http://schemas.microsoft.com/ws/2005/05/envelope/none)
'
开发者ID:VB.NET开发者,项目名称:System.ServiceModel,代码行数:82,代码来源:EnvelopeVersion
注:本文中的System.ServiceModel.EnvelopeVersion类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论