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


FileVersionInfo プロパティは、ファイルに組み込まれたバージョン リソース情報に基づいています。バージョン リソースは、多くの場合、.exe や .dll などのバイナリ ファイルに組み込まれています。テキスト ファイルにはバージョン リソース情報は含まれていません。
バージョン リソースは、通常、Win32 リソース ファイル内、またはアセンブリ 属性内で指定されています。IsDebug プロパティは、Win32 リソース ファイル内の VERSIONINFO リソースから組み込まれる、ファイルの VS_FIXEDFILEINFO ブロックの VS_FF_DEBUG フラグ値を反映します。Win32 リソース ファイル内のバージョン リソースの指定の詳細については、プラットフォーム SDK の「About Resource Files」および「VERSIONINFO Resource」を参照してください。

GetVersionInfo を呼び出して、メモ帳の FileVersionInfo を取得する例を次に示します。次に、ブール値 IsDebug の状態をテキスト ボックスに出力します。このコードは、textBox1 がインスタンス化されていることを前提にしています。
Private Sub GetIsDebug() ' Get the file version for the notepad. Dim myFileVersionInfo As FileVersionInfo = _ FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe") ' Print whether the file contains debugging information. textBox1.Text = "File contains debugging information: " & myFileVersionInfo.IsDebug End Sub 'GetIsDebug
private void GetIsDebug() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); // Print whether the file contains debugging information. textBox1.Text = "File contains debugging information: " + myFileVersionInfo.IsDebug; }
private: void GetIsDebug() { // Get the file version for the notepad. FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\Notepad.exe" ); // Print whether the file contains debugging information. textBox1->Text = String::Concat( "File contains debugging information: ", myFileVersionInfo->IsDebug ); }
private void GetIsDebug() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); // Print whether the file contains debugging information. textBox1.set_Text("File contains debugging information: " + myFileVersionInfo.get_IsDebug()); } //GetIsDebug
private function GetIsDebug() { //Get the file version for the notepad. var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); //Print whether the file contains debugging information. textBox1.Text = "File contains debugging information: " + myFileVersionInfo.IsDebug; }

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.IsDebug プロパティを検索する場合は、下記のリンクをクリックしてください。

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