# Name Property (Application Object)

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);

©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