FileVersionInfo.SpecialBuild Eigenschap

Definitie

Hiermee haalt u de speciale build-informatie voor het bestand op.

public:
 property System::String ^ SpecialBuild { System::String ^ get(); };
public string SpecialBuild { get; }
member this.SpecialBuild : string
Public ReadOnly Property SpecialBuild As String

Waarde van eigenschap

De speciale build-informatie voor het bestand of null als het bestand geen versie-informatie bevat.

Voorbeelden

In het volgende voorbeeld wordt aanroepen GetVersionInfo om het FileVersionInfo voor Kladblok op te halen. Vervolgens worden de speciale build-informatie in een tekstvak afgedrukt. Bij deze code wordt ervan uitgegaan dat textBox1 deze is geïnstantieerd.

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

    // Print the special build information.
    textBox1.Text = "Special build information: " + myFileVersionInfo.SpecialBuild;
}
Private Sub GetSpecialBuild()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print the special build information.
    textBox1.Text = "Special build information: " & myFileVersionInfo.SpecialBuild
End Sub

Opmerkingen

Als IsSpecialBuild dat het geval is true, SpecialBuild moet u opgeven hoe dit bestand verschilt van de standaardversie van het bestand.

Van toepassing op

Zie ook