A read-only property that returns a string containing the name of the Microsoft Office InfoPath 2003 application.
expression.Name
expression Required. An expression that returns a reference to the Application object.
Security Level
0: Can be accessed without restrictions.
Remarks
The name of the application does not contain the version number. To obtain the version number of an application, use the Version property of the Application object.
Example
In the following example, the Alert method of the UI object, accessed through the XDocument object, is used to display a message box that indicates the name of the application:
XDocument.UI.Alert("Application name: " + Application.Name);