FileVersionInfo.FileMinorPart Właściwość

Definicja

Pobiera pomocniczą część numeru wersji pliku.

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

Wartość właściwości

Wartość reprezentująca pomocniczą część numeru wersji pliku lub 0 (zero), jeśli plik nie zawiera informacji o wersji.

Przykłady

Poniższe przykładowe wywołania GetVersionInfo w celu pobrania FileVersionInfo elementu dla Notatnika. Następnie drukuje element FileMinorPart w polu tekstowym. W tym kodzie przyjęto założenie textBox1 , że zostało utworzone wystąpienie.

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

Uwagi

Zazwyczaj numer wersji jest wyświetlany jako "numer główny.numer pomocniczy.numer kompilacji.prywatny numer części". Numer wersji pliku to 64-bitowy numer, który zawiera numer wersji pliku w następujący sposób:

Ta właściwość pobiera drugi zestaw 16 bitów.

Dotyczy

Zobacz też