AssemblyName.ToString Method ()
Returns the full name of the assembly, also known as the display name.
Assembly: mscorlib (in mscorlib.dll)
The following example gets an AssemblyName object for a hypothetical MyAssembly.exe assembly, and then uses the method to retrieve the full assembly name, or display name.
Imports System Imports System.Reflection Imports Microsoft.VisualBasic Public Class AssemblyName_GetAssemblyName Public Shared Sub Main() ' Replace the string "MyAssembly.exe" with the name of an assembly, ' including a path if necessary. If you do not have another assembly ' to use, you can use whatever name you give to this assembly. ' Dim myAssemblyName As AssemblyName = AssemblyName.GetAssemblyName("MyAssembly.exe") Console.WriteLine(vbCrLf & "Displaying assembly information:" & vbCrLf) Console.WriteLine(myAssemblyName.ToString()) End Sub 'Main End Class 'AssemblyName_GetAssemblyName
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1