FileVersionInfo.InternalName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the internal name of the file, if one exists.
public:
property System::String ^ InternalName { System::String ^ get(); };
public string? InternalName { get; }
public string InternalName { get; }
member this.InternalName : string
Public ReadOnly Property InternalName As 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.
Examples
The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it prints the InternalName in a text box. This code assumes textBox1
has been instantiated.
private:
void GetInternalName()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo =
FileVersionInfo::GetVersionInfo( Environment::SystemDirectory + "\\Notepad.exe" );
// Print the internal name.
textBox1->Text = String::Concat( "Internal name: ", myFileVersionInfo->InternalName );
}
private void GetInternalName()
{
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo =
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");
// Print the internal name.
textBox1.Text = "Internal name: " + myFileVersionInfo.InternalName;
}
Private Sub GetInternalName()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
' Print the internal name.
textBox1.Text = "Internal name: " & myFileVersionInfo.InternalName
End Sub
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.