FileVersionInfo.SpecialBuild Vlastnost

Definice

Získá speciální informace o sestavení pro soubor.

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

Hodnota vlastnosti

Speciální informace o sestavení pro soubor nebo null pokud soubor neobsahuje informace o verzi.

Příklady

Následující příklad volání GetVersionInfo pro získání FileVersionInfo poznámkového bloku. Potom v textovém poli vytiskne speciální informace o sestavení. Tento kód předpokládá textBox1 , že došlo k vytvoření instance.

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

Poznámky

Pokud IsSpecialBuild ano true, SpecialBuild musí určit, jak se tento soubor liší od standardní verze souboru.

Platí pro

Viz také