FileVersionInfo.ProductMinorPart Vlastnost

Definice

Získá podverzi čísla verze produktu, ke které je soubor přidružen.

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

Hodnota vlastnosti

Hodnota představující podverzi čísla verze produktu nebo null pokud soubor neobsahuje informace o verzi.

Příklady

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

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

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

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

Poznámky

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

Tato vlastnost získá druhou sadu 16 bitů.

Platí pro

Viz také