Gets the name the file was created with.
[Visual Basic] Public ReadOnly Property OriginalFilename As String [C#] public string OriginalFilename {get;} [C++] public: __property String* get_OriginalFilename(); [JScript] public function get OriginalFilename() : String;
The name the file was created with.
This property enables an application to determine whether a file has been renamed.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the OriginalFilename in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetOriginalName() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "Original file name: " & myFileVersionInfo.OriginalFilename End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace