Partager via


My.Application.Info.CompanyName, propriété

Mise à jour : novembre 2007

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

' Usage
Dim value As String = My.Application.Info.CompanyName
' Declaration
Public ReadOnly Property CompanyName As String

Valeur de retour

String qui contient le nom de société associé à l'application.

Exceptions

La condition ci-dessous peut générer une exception :

Notes

La propriété My.Application.Info.CompanyName obtient le nom de société associé à l'application.

Vous pouvez changer le nom de société en modifiant la valeur de Société dans la boîte de dialogue Informations de l'assembly, qui est accessible dans le volet Application du Concepteur de projets. Pour plus d'informations, consultez Comment : spécifier des informations d'assembly (Visual Basic, C#).

Exemple

Cet exemple utilise la propriété My.Application.Info.CompanyName pour afficher le nom de société associé à l'application.

MsgBox("Application created by: " & My.Application.Info.CompanyName)

Configuration requise

Espace de noms :Microsoft.VisualBasic.ApplicationServices

Classe :AssemblyInfo

Assembly : bibliothèque Visual Basic Runtime (dans Microsoft.VisualBasic.dll)

Disponibilité par type de projet

Type de projet

Disponible

Application Windows

Oui

Bibliothèque de classes

Oui

Application console

Oui

Bibliothèque de contrôles Windows

Oui

Bibliothèque de contrôles Web

Non

Service Windows

Oui

Site Web

Non

Autorisations

Aucune autorisation n'est requise.

Voir aussi

Tâches

Comment : spécifier des informations d'assembly (Visual Basic, C#)

Référence

My.Application.Info, objet

AssemblyInfo.CompanyName