Application.Name property

Office 2013 and later

Gets the name of the InfoPath application.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract string Name { get; }

Property value

Type: System.String
The name of the InfoPath application.

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

This member can be accessed without restrictions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

In the following example, the Name property is used to display the name of the application.

string appName = this.Application.Name;