Application.Name Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nom de l'application InfoPath.
public:
abstract property System::String ^ Name { System::String ^ get(); };
public abstract string Name { get; }
member this.Name : string
Public MustOverride ReadOnly Property Name As String
Valeur de propriété
Nom de l'application InfoPath.
Exemples
Dans l'exemple ci-dessous, la propriété Name est utilisée pour afficher le nom de l'application.
string appName = this.Application.Name;
MessageBox.Show(appName);
Dim appName As String = Me.Application.Name
MessageBox.Show(appName)
Remarques
Le nom de l'application ne contient pas le numéro de version. Pour obtenir le numéro de version d’une application, utilisez la Version propriété .
Vous pouvez accéder à ce membre sans restrictions.
Vous pouvez accéder à ce type ou à ce membre à partir du code exécuté dans les formulaires ouverts dans Microsoft InfoPath Filler ou dans un navigateur web.