_Application2.Name - Propriété
Obtient le nom de l'application InfoPath.
Espace de noms : Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly : Microsoft.Office.Interop.InfoPath.SemiTrust (dans Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntaxe
'Déclaration
ReadOnly Property Name As String
Get
'Utilisation
Dim instance As _Application2
Dim value As String
value = instance.Name
string Name { get; }
Valeur de propriété
Type : System.String
Implémentations
Remarques
Le nom de l'application ne comprend pas le numéro de version. Pour connaître le numéro de version d'une application, utilisez la propriété Version.
Important
Vous pouvez accéder à ce membre sans restrictions.
Exemples
Dans l'exemple suivant, la méthode Alert de l'objet UIObject, accessible via l'objet XDocument, est utilisée pour afficher une boîte de message indiquant le nom de l'application :
thisXDocument.UI.Alert("Application name: " + thisApplication.Name);
Voir aussi
Référence
Microsoft.Office.Interop.InfoPath.SemiTrust - Espace de noms