FullName Propiedad
Este artículo se tradujo automáticamente. Para ver el artículo en inglés, active la casilla Inglés. Además, puede mostrar el texto en inglés en una ventana emergente si mueve el puntero del mouse sobre el texto.

Assembly.FullName (Propiedad)


Obtiene el nombre para mostrar del ensamblado.

Espacio de nombres:   System.Reflection
Ensamblado:  mscorlib (en mscorlib.dll)

public virtual string FullName { get; }

Valor de propiedad

Type: System.String

Nombre para mostrar del ensamblado.



See T:System.Reflection.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 M:System.Reflection.AssemblyName.#ctor(System.String) constructor, which parses it and populates the appropriate fields of the new T:System.Reflection.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 P:System.Reflection.Assembly.FullName property, for compatibility reasons. See P:System.Reflection.AssemblyName.ProcessorArchitecture.

The following example retrieves the display name of the currently executing assembly, and the display name of the assembly that contains the T:System.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
Disponible desde 4.5
.NET Framework
Disponible desde 1.1
Portable Class Library
Compatible con: portable .NET platforms
Disponible desde 2.0
Windows Phone Silverlight
Disponible desde 7.0
Windows Phone
Disponible desde 8.1
Volver al principio
© 2016 Microsoft