Gets information about a private version of the file.
[Visual Basic] Public ReadOnly Property PrivateBuild As String [C#] public string PrivateBuild {get;} [C++] public: __property String* get_PrivateBuild(); [JScript] public function get PrivateBuild() : String;
Information about a private version of the file.
This information is present when IsPrivateBuild is true.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the private build information in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetPrivateBuild() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "Private Build Number: " & myFileVersionInfo.PrivateBuild End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace | IsPrivateBuild