FileVersionInfo.ProductBuildPart プロパティ
このファイルに関連付けられている製品のビルド番号を取得します。
名前空間: System.Diagnostics
アセンブリ: System (system.dll 内)
構文

通常、バージョン番号は "メジャー番号.マイナ番号.ビルド番号.プライベート パート番号" の形式で表示されます。ファイル バージョン番号は、ファイルのバージョン番号を示す 64 ビットの数値であり、次のような構成になっています。

GetVersionInfo を呼び出して、メモ帳の FileVersionInfo を取得する例を次に示します。次に、ProductBuildPart をテキスト ボックスに出力します。このコードは、textBox1 がインスタンス化されていることを前提にしています。
Private Sub GetProductBuildPart() ' Get the file version for the notepad. Dim myFileVersionInfo As FileVersionInfo = _ FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe") ' Print the product build part number. textBox1.Text = "Product build part number: " & myFileVersionInfo.ProductBuildPart End Sub 'GetProductBuildPart
private void GetProductBuildPart() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); // Print the product build part number. textBox1.Text = "Product build part number: " + myFileVersionInfo.ProductBuildPart; }
private: void GetProductBuildPart() { // Get the file version for the notepad. FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\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("%systemroot%\\Notepad.exe"); // Print the product build part number. textBox1.set_Text("Product build part number: " + myFileVersionInfo.get_ProductBuildPart()); } //GetProductBuildPart
private function GetProductBuildPart() { //Get the file version for the notepad. var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); //Print the product build part number. textBox1.Text = "Product build part number: " + myFileVersionInfo.ProductBuildPart; }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


FileVersionInfo クラス
FileVersionInfo メンバ
System.Diagnostics 名前空間
ProductVersion
ProductMajorPart
ProductMinorPart
ProductPrivatePart
Weblioに収録されているすべての辞書からFileVersionInfo.ProductBuildPart プロパティを検索する場合は、下記のリンクをクリックしてください。

- FileVersionInfo.ProductBuildPart プロパティのページへのリンク