FileVersionInfo.InternalName Proprietà

Definizione

Ottiene il nome interno del file, se presente.

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

Valore della proprietà

Nome interno del file. Se non esiste, questa proprietà conterrà il nome originale del file senza l'estensione.

Esempio

Nell'esempio seguente viene chiamato GetVersionInfo per ottenere per FileVersionInfo il Blocco note. Quindi stampa l'oggetto InternalName in una casella di testo. Questo codice presuppone textBox1 che sia stata creata un'istanza di .

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

Si applica a