Export (0) Print
Expand All

FileVersionInfo.IsSpecialBuild Property

Gets a value that specifies whether the file is a special build.

[Visual Basic]
Public ReadOnly Property IsSpecialBuild As Boolean
[C#]
public bool IsSpecialBuild {get;}
[C++]
public: __property bool get_IsSpecialBuild();
[JScript]
public function get IsSpecialBuild() : Boolean;

Property Value

true if the file is a special build; otherwise, false.

Remarks

A file that is a special build was built using standard release procedures, but the file differs from a standard file of the same version number. If this value is true, the SpecialBuild property must specify how this file differs from the standard version.

Example

The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it displays whether this version is a special build version in a text box. This code assumes textBox1 has been instantiated.

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

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

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

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

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 | SpecialBuild

Show:
© 2014 Microsoft