FileVersionInfo.InternalName Vlastnost

Definice

Získá interní název souboru, pokud existuje.

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

Hodnota vlastnosti

Interní název souboru. Pokud žádná neexistuje, tato vlastnost bude obsahovat původní název souboru bez přípony.

Příklady

Následující příklad volání GetVersionInfo pro získání FileVersionInfo poznámkového bloku. Potom se vytiskne InternalName v textovém poli. Tento kód předpokládá textBox1 , že došlo k vytvoření instance.

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

Platí pro