Show All

# Version Property (Application Object)

A read-only property that returns a string containing the Microsoft Office InfoPath 2003 version number.

expression.Version

expression Required. An expression that returns a reference to the Application object.

## Security Level

0: Can be accessed without restrictions.

## Remarks

The version number of the application does not contain the name. To obtain the name of an application, use the Name property of the Application object.

To obtain the version number of a form template, use the Version property of the Solution object.

## Example

In the following example, the Version property of the Application object is used to display the application's version number in a message box:

    XDocument.UI.Alert("Application version: " + Application.Version);

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp