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, bude tato vlastnost obsahovat původní název souboru bez přípony.

Příklady

Následující příklad volá GetVersionInfo , aby získal pro FileVersionInfo Poznámkový blok. Potom se vytiskne do InternalName textového pole. Tento kód předpokládá, že textBox1 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 = 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

Platí pro