Share via


_Application3.Version - Propriété

Obtient le numéro de version d'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 Version As String
    Get
'Utilisation
Dim instance As _Application3
Dim value As String

value = instance.Version
string Version { get; }

Valeur de propriété

Type : System.String

Implémentations

_Application2.Version
_Application.Version

Remarques

Le numéro de version d'une application ne comprend pas son nom. Pour connaître le nom d'une application, utilisez la propriété Name.

Pour obtenir le numéro de version d'un modèle de formulaire, utilisez la propriété Version.

Important

Vous pouvez accéder à ce membre sans restrictions.

Exemples

Dans l'exemple suivant, la propriété Version de l'objet Application est utilisée pour afficher le numéro de version de l'application dans une boîte de message :

thisXDocument.UI.Alert("Application version: " + 
   thisApplication.Version);
thisXDocument.UI.Alert("Application version: " & _
   thisApplication.Version)

Voir aussi

Référence

_Application3 interface

_Application3 - Membres

Version - Surcharge

Microsoft.Office.Interop.InfoPath.SemiTrust - Espace de noms