Freigeben über


FileVersionInfo.InternalName-Eigenschaft

Ruft den internen Namen der Datei ab, sofern vorhanden.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

Syntax

'Declaration
Public ReadOnly Property InternalName As String
'Usage
Dim instance As FileVersionInfo
Dim value As String

value = instance.InternalName
public string InternalName { get; }
public:
property String^ InternalName {
    String^ get ();
}
/** @property */
public String get_InternalName ()
public function get InternalName () : String

Eigenschaftenwert

Der interne Name der Datei. Wenn kein interner Name vorhanden ist, enthält diese Eigenschaft den ursprünglichen Namen der Datei ohne die Erweiterung.

Beispiel

Im folgenden Beispiel wird GetVersionInfo aufgerufen, um FileVersionInfo für den Editor abzurufen. InternalName wird dann in einem Textfeld angezeigt. Bei diesem Code wird davon ausgegangen, dass textBox1 instanziiert wurde.

Private Sub GetInternalName()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
    
    ' Print the internal name.
    textBox1.Text = "Internal name: " & myFileVersionInfo.InternalName
End Sub 'GetInternalName
private void GetInternalName() {
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    // Print the internal name.
    textBox1.Text = "Internal name: " + myFileVersionInfo.InternalName;
 }
    
private:
   void GetInternalName()
   {
      // Get the file version for the notepad.
      FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\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("%systemroot%\\Notepad.exe");

    // Print the internal name.
    textBox1.set_Text("Internal name: " 
        + myFileVersionInfo.get_InternalName());
} //GetInternalName
private function GetInternalName() {
    //Get the file version for the notepad.
    var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    //Print the internal name.
    textBox1.Text = "Internal name: " + myFileVersionInfo.InternalName;
 }
    

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

FileVersionInfo-Klasse
FileVersionInfo-Member
System.Diagnostics-Namespace