FileVersionInfo.FileMinorPart Vlastnost

Definice

Získá podverzi čísla verze souboru.

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

Hodnota vlastnosti

Hodnota představující podverzi čísla verze souboru nebo 0 (nula), 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 FileMinorPart textového pole. Tento kód předpokládá, že textBox1 došlo k vytvoření instance.

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

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

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

Poznámky

Číslo verze se obvykle zobrazuje jako "hlavní číslo.podverze.číslo sestavení.číslo privátní části". Číslo verze souboru je 64bitové číslo, které obsahuje číslo verze souboru následujícím způsobem:

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

Platí pro

Viz také