Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Application.CompanyName Property

Class

System.Windows.Forms.Application

Syntax

Dim result As String = Application.CompanyName

Description

The CompanyName property gets the company name for the application as recorded in the assembly. It is set using the <AssemblyCompany> attribute of the assembly, which normally appears in the AssemblyInfo.vb file. Its syntax is:

<Assembly: AssemblyCompany("company")>

where company is the company name. This is a read-only property.

Version Differences

Visual Basic 2005 includes the My.Application.Info.CompanyName property, which provides similar functionality.

See Also

Application Class, Application.ProductName Property, Application.ProductVersion Property

Категории