My.Application.Info Object

Provides properties for getting the information about the application, such as the version number, description, loaded assemblies, and so on.

Remarks

Some of the properties exposed by the My.Application.Info object return the application's assembly information. To set the information in the application's assembly, you must use the Assembly Information dialog box, accessible from the Application pane of the Project Designer. For more information, see How to: Specify Assembly Information (Visual Basic, C#).

The My.Application.Info object provides functionality similar to the FileVersionInfo class but is scoped to give quick access to the most common properties.

Other properties, such as LoadedAssemblies, provide access to the current state of the application.

Example

This example uses the My.Application.Info.Version property to display the version of the application.

MsgBox("Application version: " & My.Application.Info.Version.ToString)

Requirements

Namespace:Microsoft.VisualBasic.ApplicationServices

Class:AssemblyInfo

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Reference

My.Application.Info Object Members

My.Application Object

Microsoft.VisualBasic.ApplicationServices.AssemblyInfo

FileVersionInfo