FileVersionInfo.IsSpecialBuild Eigenschap

Definitie

Hiermee wordt een waarde opgehaald die aangeeft of het bestand een speciale build is.

public:
 property bool IsSpecialBuild { bool get(); };
public bool IsSpecialBuild { get; }
member this.IsSpecialBuild : bool
Public ReadOnly Property IsSpecialBuild As Boolean

Waarde van eigenschap

true als het bestand een speciale build is; anders, false.

Voorbeelden

In het volgende voorbeeld wordt aanroepen GetVersionInfo om het FileVersionInfo voor Kladblok op te halen. Vervolgens wordt weergegeven of deze versie een speciale buildversie in een tekstvak is. Bij deze code wordt ervan uitgegaan dat textBox1 deze is geïnstantieerd.

private void GetIsSpecialBuild()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print whether the file is a special build.
    textBox1.Text = "File is a special build: " + myFileVersionInfo.IsSpecialBuild;
}
Private Sub GetIsSpecialBuild()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print whether the file is a special build.
    textBox1.Text = "File is a special build: " & myFileVersionInfo.IsSpecialBuild
End Sub

Opmerkingen

Een bestand dat een speciale build is, is gebouwd met behulp van standaardreleaseprocedures, maar het bestand verschilt van een standaardbestand met hetzelfde versienummer. Als deze waarde is true, moet de SpecialBuild eigenschap opgeven hoe dit bestand verschilt van de standaardversie.

Van toepassing op

Zie ook