Gets a value that specifies whether the file was built using standard release procedures.
[Visual Basic] Public ReadOnly Property IsPrivateBuild As Boolean [C#] public bool IsPrivateBuild {get;} [C++] public: __property bool get_IsPrivateBuild(); [JScript] public function get IsPrivateBuild() : Boolean;
true if the file is a private build; false if the file was built using standard release procedures.
If this value is true, PrivateBuild will describe how this version of the file differs from the standard version.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it displays the the private build information in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetIsPrivateBuild() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "File is a private build: " & myFileVersionInfo.IsPrivateBuild End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace | PrivateBuild