Share via


Application.Name Property (Microsoft.Office.InfoPath)

Gets the name of the InfoPath application.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Name As String
'Usage
Dim instance As Application
Dim value As String

value = instance.Name
public abstract string Name { get; }

Property Value

The name of the InfoPath application.

Remarks

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 Office InfoPath 2007 or in a Web browser.

Example

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

string appName = this.Application.Name;
MessageBox.Show(appName);
Dim appName As String = Me.Application.Name
MessageBox.Show(appName)

See Also

Reference

Application Class
Application Members
Microsoft.Office.InfoPath Namespace