NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileVersionInfo.InternalName

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;

Property Value

The internal name of the file. If none exists, this property will contain the original name of the file without the extension.

Example [Visual Basic]

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

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace