FileVersionInfo.ProductMinorPart プロパティ

定義

このファイルに関連付けられている製品のマイナー バージョン番号を取得します。

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

プロパティ値

製品のマイナー バージョン番号を表す値。ファイルにバージョン情報が含まれていない場合は null

次の例では、 を呼び出 GetVersionInfo してメモ帳の を FileVersionInfo 取得します。 次に、 を ProductMinorPart テキスト ボックスに印刷します。 このコードは、 textBox1 がインスタンス化されていることを前提としています。

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

注釈

通常、バージョン番号は "major number.minor number.build number.private part number" と表示されます。 製品バージョン番号は、次のようにバージョン番号を保持する 64 ビット番号です。

このプロパティは、16 ビットの 2 番目のセットを取得します。

適用対象

こちらもご覧ください