Share via


My.Application.Info.ProductName Property 

Gets the product name associated with the application.

' Usage
Dim value As String = My.Application.Info.ProductName
' Declaration
Public ReadOnly Property ProductName As String

Return Value

A String containing the product name associated with the application.

Exceptions

The following condition can cause an exception:

Remarks

The My.Application.Info.ProductName property gets the product name associated with the application.

You can change the product name by changing the value for Product in the Assembly Information dialog box, accessible from the Application pane of the Project Designer. For more information, see How to: Specify Assembly Information.

Example

This example uses the My.Application.Info.ProductName property to display the product name associated with the application.

MsgBox("Application product name: " & My.Application.Info.ProductName)

Requirements

Namespace: Microsoft.VisualBasic.ApplicationServices

Class: AssemblyInfo

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

Availability by Project Type

Project type Available

Windows Application

Yes

Class Library

Yes

Console Application

Yes

Windows Control Library

Yes

Web Control Library

No

Windows Service

Yes

Web Site

No

Permissions

No permissions are required.

See Also

Tasks

How to: Specify Assembly Information

Reference

My.Application.Info Object
Microsoft.VisualBasic.ApplicationServices.AssemblyInfo.ProductName