AssemblyInfo Class

 

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

Namespace:   Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

System::Object
  Microsoft.VisualBasic.ApplicationServices::AssemblyInfo

[HostProtectionAttribute(SecurityAction::LinkDemand, Resources = HostProtectionResource::ExternalProcessMgmt)]
public ref class AssemblyInfo 

NameDescription
System_CAPS_pubmethodAssemblyInfo(Assembly^)

Initializes a new instance of the AssemblyInfo class with the specified assembly information.

NameDescription
System_CAPS_pubpropertyAssemblyName

Gets the name, without the extension, of the assembly file for the application.

System_CAPS_pubpropertyCompanyName

Gets the company name associated with the application.

System_CAPS_pubpropertyCopyright

Gets the copyright notice associated with the application.

System_CAPS_pubpropertyDescription

Gets the description associated with the application.

System_CAPS_pubpropertyDirectoryPath

Gets the directory where the application is stored.

System_CAPS_pubpropertyLoadedAssemblies

Gets a collection of all assemblies loaded by the application.

System_CAPS_pubpropertyProductName

Gets the product name associated with the application.

System_CAPS_pubpropertyStackTrace

Gets the current stack-trace information.

System_CAPS_pubpropertyTitle

Gets the title associated with the application.

System_CAPS_pubpropertyTrademark

Gets the trademark notice associated with the application.

System_CAPS_pubpropertyVersion

Gets the version number of the application.

System_CAPS_pubpropertyWorkingSet

Gets the amount of physical memory mapped to the process context.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

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)

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: