FileVersionInfo.FileBuildPart Vlastnost

Definice

Získá číslo sestavení souboru.

public:
 property int FileBuildPart { int get(); };
public int FileBuildPart { get; }
member this.FileBuildPart : int
Public ReadOnly Property FileBuildPart As Integer

Hodnota vlastnosti

Hodnota představující číslo sestavení souboru nebo null pokud soubor neobsahoval informace o verzi.

Příklady

Následující příklad volá GetVersionInfo pro získání pro FileVersionInfo Poznámkový blok. Potom vypíše FileBuildPart text v textovém poli. Tento kód předpokládá, že textBox1 došlo k vytvoření instance.

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

        // Print the file build number.
        textBox1->Text = String::Format( "File build number: {0}", myFileVersionInfo->FileBuildPart );
    }
private void GetFileBuildPart()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

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

Poznámky

Číslo verze se obvykle zobrazuje jako "hlavní číslo.podverze.číslo buildu.číslo soukromé části". Číslo verze souboru je 64bitové číslo, které obsahuje číslo verze souboru takto:

Tato vlastnost získá třetí sadu 16 bitů.

Platí pro

Viz také