Freigeben über


Application.CompanyName-Eigenschaft

Ruft den der Anwendung zugeordneten Firmennamen ab.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public Shared ReadOnly Property CompanyName As String
'Usage
Dim value As String

value = Application.CompanyName
public static string CompanyName { get; }
public:
static property String^ CompanyName {
    String^ get ();
}
/** @property */
public static String get_CompanyName ()
public static function get CompanyName () : String

Eigenschaftenwert

Der Firmenname.

Beispiel

Im folgenden Codebeispiel wird diese Eigenschaft abgerufen und ihr Wert in einem Textfeld angezeigt. Dafür ist erforderlich, dass textBox1 in einem Formular platziert wurde.

Private Sub PrintCompanyName()
   textBox1.Text = "The company name is: " & _
      Application.CompanyName
End Sub
  
private void PrintCompanyName() {
    textBox1.Text = "The company name is: " + Application.CompanyName;
 }
   
private:
   void PrintCompanyName()
   {
      textBox1->Text = String::Format( "The company name is: {0}",
         Application::CompanyName );
   }
private void PrintCompanyName()
{
    textBox1.set_Text("The company name is: "
        + Application.get_CompanyName());
} //PrintCompanyName    

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, 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

Application-Klasse
Application-Member
System.Windows.Forms-Namespace
ProductName
ProductVersion
AssemblyCompanyAttribute