本文整理汇总了VB.NET中System.Runtime.Versioning.FrameworkName.Inequality操作符的典型用法代码示例。如果您正苦于以下问题:VB.NET FrameworkName.Inequality操作符的具体用法?VB.NET FrameworkName.Inequality怎么用?VB.NET FrameworkName.Inequality使用的例子?那么恭喜您, 这里精选的操作符代码示例或许可以为您提供帮助。
在下文中一共展示了FrameworkName.Inequality操作符的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: FrameworkName
Dim supportedVer1 As New FrameworkName(".NET Framework, Version=4.0")
Dim actualVersion As New FrameworkName(String.Format(".NET Framework, Version={0}",
Environment.Version.ToString()))
Console.WriteLine("Supported Version: {0}", supportedVer1)
Console.WriteLine("Actual Version: {0}", actualVersion)
If supportedVer1 <> actualVersion Then
Console.WriteLine("The supported and actual Framework versions are different.")
Else
Console.WriteLine("The supported and actual Framework versions are the same.")
End If
Console.WriteLine()
输出:
Supported Version: .NET Framework,Version=v4.0 Actual Version: .NET Framework,Version=v4.0.30319.18010 The supported and actual Framework versions are different.