Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Basic
Objects

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Basic Language Reference 
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.

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

Namespace: Microsoft.VisualBasic.ApplicationServices

Class: AssemblyInfo

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker