Application.CompanyName 属性

定义

获取与该应用程序关联的公司名称。

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

属性值

String

公司名称。

示例

下面的代码示例获取此属性,并在文本框中显示其值。 该示例要求 textBox1 已放置在窗体上。

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

适用于

另请参阅