本文整理汇总了VB.NET中System.Diagnostics.FileVersionInfo.CompanyName属性的典型用法代码示例。如果您正苦于以下问题:VB.NET FileVersionInfo.CompanyName属性的具体用法?VB.NET FileVersionInfo.CompanyName怎么用?VB.NET FileVersionInfo.CompanyName使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类System.Diagnostics.FileVersionInfo
的用法示例。
在下文中一共展示了FileVersionInfo.CompanyName属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: GetCompanyName
Private Sub GetCompanyName()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
' Print the company name.
textBox1.Text = "The company name: " & myFileVersionInfo.CompanyName
End Sub
示例2: Tester
' 导入命名空间
Imports System
Imports System.IO
Imports System.Data
Imports System.Drawing
Imports System.Diagnostics
Imports System.ComponentModel
Public Class Tester
Public Shared Sub Main
Dim m_File As FileVersionInfo
m_File = FileVersionInfo.GetVersionInfo("c:\\test.txt")
Console.WriteLine(m_File.FileName)
Console.WriteLine(m_File.FileName.Substring(m_File.FileName.LastIndexOf("\") + 1))
Console.WriteLine(m_File.Comments)
Console.WriteLine(m_File.CompanyName)
Console.WriteLine(m_File.FileVersion)
Console.WriteLine(m_File.ProductVersion)
Console.WriteLine(m_File.ProductName)
Console.WriteLine(m_File.FilePrivatePart)
Console.WriteLine(m_File.FileDescription)
Console.WriteLine(m_File.Language)
Console.WriteLine(m_File.LegalTrademarks)
Console.WriteLine(m_File.OriginalFilename)
Console.WriteLine(m_File.SpecialBuild)
End Sub
End Class