Application.CompanyName Propriété

Définition

Obtient le nom de la société associé à l’application.

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

Valeur de propriété

Nom de la société.

Exemples

L’exemple de code suivant obtient cette propriété et affiche sa valeur dans une zone de texte. L’exemple nécessite qu’il textBox1 ait été placé sur un formulaire.

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

S’applique à

Voir aussi