Assembly.FullName Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the display name of the assembly.
Assembly: mscorlib (in mscorlib.dll)
See AssemblyName for a description of the format of the display name of an assembly.
Note: |
|---|
Writing your own code to parse display names is not recommended. Instead, pass the display name to the AssemblyName constructor, which parses it and populates the appropriate fields of the new AssemblyName. |
The following example retrieves the display name of the currently executing assembly, and the display name of the assembly that contains the Int32 type (int in C#, Integer in Visual Basic).
Imports System.Reflection Class Example Public Shared Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock) outputBlock.Text &= "The FullName property (also called the display name) of..." & vbCrLf outputBlock.Text &= "...the currently executing assembly:" & vbCrLf outputBlock.Text &= Assembly.GetExecutingAssembly().FullName & vbCrLf outputBlock.Text &= "...the assembly that contains the Int32 type:" & vbCrLf outputBlock.Text &= GetType(Integer).Assembly.FullName & vbCrLf End Sub End Class ' This example produces output similar to the following: ' 'The FullName property (also called the display name) of... '...the currently executing assembly: 'SilverlightApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null '...the assembly that contains the Int32 type: 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
Note: