My.Application.Info.AssemblyName Property
Gets the name, without the extension, of the assembly file for the application.
' Usage
Dim value As String = My.Application.Info.AssemblyName
' Declaration
Public ReadOnly Property AssemblyName As String
Return Value
A String containing the file name.
Remarks
The My.Application.Info.AssemblyName property gets the name of the file containing the manifest.
Example
This example uses the My.Application.Info.AssemblyName property to display the name of the application.
MsgBox("Application assembly name: " & My.Application.Info.AssemblyName)
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
The following permission may be necessary:
Permission | Description |
---|---|
Controls the ability to access files and folders. Associated enumeration: Unrestricted. |
For more information, see Code Access Security and Requesting Permissions.