FileVersionInfo.ProductBuildPart Vlastnost

Definice

Získá číslo sestavení produktu, ke kterým je tento soubor přidružen.

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

Hodnota vlastnosti

Hodnota představující číslo sestavení produktu, ke které je tento soubor přidružený, nebo null pokud soubor neobsahoval informace o verzi.

Příklady

Následující příklad volá GetVersionInfo , aby získal pro FileVersionInfo Poznámkový blok. Potom se vytiskne do ProductBuildPart textového pole. Tento kód předpokládá, že textBox1 došlo k vytvoření instance.

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

        // Print the product build part number.
        textBox1->Text = String::Concat( "Product build part number: ", myFileVersionInfo->ProductBuildPart );
    }
private void GetProductBuildPart()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

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

Poznámky

Číslo verze se obvykle zobrazuje jako "hlavní číslo.podverze.číslo sestavení.číslo privátní části". Číslo verze produktu je 64bitové číslo, které obsahuje číslo verze takto:

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

Platí pro

Viz také