Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

My.Application.Info Object 

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

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.

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.

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

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

Namespace: Microsoft.VisualBasic.ApplicationServices

Class: AssemblyInfo

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.