FileVersionInfo.IsPrivateBuild プロパティ
アセンブリ: System (system.dll 内)

このファイルがプライベートにビルドされたファイルの場合は true。標準リリース プロシージャを使用して作成された場合は false。


GetVersionInfo を呼び出して、メモ帳の FileVersionInfo を取得する例を次に示します。次に、プライベート ビルド情報をテキスト ボックスに出力します。このコードは、textBox1 がインスタンス化されていることを前提にしています。
Private Sub GetIsPrivateBuild() ' Get the file version for the notepad. Dim myFileVersionInfo As FileVersionInfo = _ FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe") ' Print whether the version is a private build. textBox1.Text = "Version is a private build: " & myFileVersionInfo.IsPrivateBuild End Sub 'GetIsPrivateBuild
private void GetIsPrivateBuild() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); // Print whether the version is a private build. textBox1.Text = "Version is a private build: " + myFileVersionInfo.IsPrivateBuild; }
private: void GetIsPrivateBuild() { // Get the file version for the notepad. FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\Notepad.exe" ); // Print whether the version is a private build. textBox1->Text = String::Concat( "Version is a private build: ", myFileVersionInfo->IsPrivateBuild ); }
private void GetIsPrivateBuild() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); // Print whether the version is a private build. textBox1.set_Text("Version is a private build: " + myFileVersionInfo.get_IsPrivateBuild()); } //GetIsPrivateBuild
private function GetIsPrivateBuild() { //Get the file version for the notepad. var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); //Print whether the version is a private build. textBox1.Text = "Version is a private build: " + myFileVersionInfo.IsPrivateBuild; }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からFileVersionInfo.IsPrivateBuild プロパティを検索する場合は、下記のリンクをクリックしてください。

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