FullName Property

Assembly.FullName Property


Gets the display name of the assembly.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual string FullName { get; }

Property Value

Type: System.String

The display name of the assembly.

See AssemblyName for a description of the format of the display name of an assembly.


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.

In the .NET Framework version 2.0, processor architecture is added to assembly identity, and can be specified as part of assembly name strings. However, it is not included in the string returned by the FullName property, for compatibility reasons. See AssemblyName.ProcessorArchitecture.

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).

using System;
using System.Reflection;

class Example
    static void Main()
        Console.WriteLine("The FullName property (also called the display name) of...");
        Console.WriteLine("...the currently executing assembly:");

        Console.WriteLine("...the assembly that contains the Int32 type:");

/* This example produces output similar to the following:

The FullName property (also called the display name) of...
...the currently executing assembly:
ExampleAssembly, Version=, Culture=neutral, PublicKeyToken=null
...the assembly that contains the Int32 type:
mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft