Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileVersionInfo.IsPrivateBuild Property

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

The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it displays the private build information in a text box. This code assumes textBox1 has been instantiated.

[Visual Basic] 
Private Sub GetIsPrivateBuild()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
    
    ' Print whether the version is a private build.
    textBox1.Text = "Version is a private build: " & myFileVersionInfo.IsPrivateBuild
End Sub 'GetIsPrivateBuild

[C#] 
private void GetIsPrivateBuild() {
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    // Print whether the version is a private build.
    textBox1.Text = "Version is a private build: " + myFileVersionInfo.IsPrivateBuild;
 }
    

[C++] 
private:
void GetIsPrivateBuild() {
    // Get the file version for the notepad.
    FileVersionInfo* myFileVersionInfo = FileVersionInfo::GetVersionInfo(S"%systemroot%\\Notepad.exe");
 
    // Print whether the version is a private build.
    textBox1->Text = String::Format( S"Version is a private build: {0}", __box(myFileVersionInfo->IsPrivateBuild));
 }
    

[JScript] 
private function GetIsPrivateBuild() {
    //Get the file version for the notepad.
    var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    //Print whether the version is a private build.
    textBox1.Text = "Version is a private build: " + myFileVersionInfo.IsPrivateBuild;
 }
    

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft