AssemblyInfo.ProductName Propriété

Définition

Obtient le nom du produit associé à l'application.

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

Valeur de propriété

String contenant le nom du produit associé à l'application.

Exceptions

L'assembly n'a pas d'attribut AssemblyProductAttribute.

Exemples

Cet exemple utilise la My.Application.Info.ProductName propriété pour afficher le nom du produit associé à l’application.

MsgBox("Application product name: " & My.Application.Info.ProductName)

Remarques

La My.Application.Info.ProductName propriété obtient le nom de produit associé à l’application.

Vous pouvez modifier le nom du produit en modifiant la valeur de Product dans la boîte de dialogue Informations sur l’assembly, accessible à partir du volet Application de l’Designer Project.

Disponibilité par type de projet

Type de projet Disponible
Application Windows Forms Oui
Bibliothèque de classes Oui
Application console Oui
Bibliothèque de contrôles Windows Forms Oui
Bibliothèque de contrôles web Non
Service Windows Oui
Site web Non

S’applique à

Voir aussi