Share via


_Application2.Name Property

Gets the name of the InfoPath application.

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

Syntax

'Declaration
ReadOnly Property Name As String
    Get
'Usage
Dim instance As _Application2
Dim value As String

value = instance.Name
string Name { get; }

Property Value

Type: System.String

Implements

_Application.Name

Remarks

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

Important

This member can be accessed without restrictions.

Examples

In the following example, the Alert method of the UIObject object, accessed through the XDocument object is used to display a message box that indicates the name of the application:

thisXDocument.UI.Alert("Application name: " + thisApplication.Name);

See Also

Reference

_Application2 Interface

_Application2 Members

Name Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace