Export (0) Print
Expand All

FileVersionInfo.IsSpecialBuild Property

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

Namespace: System.Diagnostics
Assembly: System (in system.dll)

public bool IsSpecialBuild { get; }
/** @property */
public boolean get_IsSpecialBuild ()

public function get IsSpecialBuild () : boolean

Property Value

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

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.

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.

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;
 }
    

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.set_Text("File is a special build: " 
        + myFileVersionInfo.get_IsSpecialBuild());
} //GetIsSpecialBuild

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;
 }
    

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft