NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileVersionInfo.IsPrivateBuild

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;

Property Value

true if the file is a private build; false if the file was built using standard release procedures.

Remarks

If this value is true, PrivateBuild will describe how this version of the file differs from the standard version.

Example [Visual Basic]

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

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace | PrivateBuild