Gets a value that specifies whether the file contains debugging information or is compiled with debugging features enabled.
[Visual Basic] Public ReadOnly Property IsDebug As Boolean [C#] public bool IsDebug {get;} [C++] public: __property bool get_IsDebug(); [JScript] public function get IsDebug() : Boolean;
true if the file contains debugging information or is compiled with debugging features enabled; otherwise, false.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it displays the state of the boolean IsDebug in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetIsDebug() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "File contains debugging information: " & myFileVersionInfo.IsDebug End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace