FileVersionInfo.CompanyName Özellik

Tanım

Dosyayı üreten şirketin adını alır.

public:
 property System::String ^ CompanyName { System::String ^ get(); };
public string? CompanyName { get; }
public string CompanyName { get; }
member this.CompanyName : string
Public ReadOnly Property CompanyName As String

Özellik Değeri

Dosyayı oluşturan şirketin adı veya null dosyanın sürüm bilgileri içermemesi.

Örnekler

Aşağıdaki örnek, Not Defteri için öğesini GetVersionInfo almak için öğesini çağırırFileVersionInfo. Ardından metin kutusuna CompanyName yazdırır. Bu kod örneği oluşturuldu varsayılır textBox1 .

private void GetCompanyName()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print the company name.
    textBox1.Text = "The company name: " + myFileVersionInfo.CompanyName;
}
Private Sub GetCompanyName()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")

    ' Print the company name.
    textBox1.Text = "The company name: " & myFileVersionInfo.CompanyName
End Sub

Şunlara uygulanır