Gets the name of the company that produced the file.
[Visual Basic] Public ReadOnly Property CompanyName As String [C#] public string CompanyName {get;} [C++] public: __property String* get_CompanyName(); [JScript] public function get CompanyName() : String;
The name of the company that produced the file.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the CompanyName in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetCompanyName() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "CompanyName: " & myFileVersionInfo.CompanyName End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace