Gets the internal name of the file, if one exists.
[Visual Basic] Public ReadOnly Property InternalName As String [C#] public string InternalName {get;} [C++] public: __property String* get_InternalName(); [JScript] public function get InternalName() : String;
The internal name of the file. If none exists, this property will contain the original name of the file without the extension.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the InternalName in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetInternalName() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "Internal Name: " & myFileVersionInfo.InternalName End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace