Assembly.FullName 속성

정의

어셈블리의 표시 이름을 가져옵니다.Gets the display name of the assembly.

public:
 virtual property System::String ^ FullName { System::String ^ get(); };
public virtual string FullName { get; }
member this.FullName : string
Public Overridable ReadOnly Property FullName As String

속성 값

어셈블리의 표시 이름입니다.The display name of the assembly.

구현

예제

다음 예제에서는 현재 실행 중인 어셈블리의 표시 이름과 Int32 형식을 포함 하는 어셈블리의 표시 이름 (의 C#int, Visual Basic의 Integer)을 검색 합니다.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 namespace System;
using namespace System::Reflection;

void main()
{
    Console::WriteLine("The FullName property (also called the display name) of...");
    Console::WriteLine("...the currently executing assembly:");
    Console::WriteLine(Assembly::GetExecutingAssembly()->FullName);

    Console::WriteLine("...the assembly that contains the Int32 type:");
    Console::WriteLine(int::typeid->Assembly->FullName);
}

/* This example produces output similar to the following:

The FullName property (also called the display name) of...
...the currently executing assembly:
ExampleAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
...the assembly that contains the Int32 type:
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 */
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(typeof(Example).Assembly.FullName);

        Console.WriteLine("...the assembly that contains the Int32 type:");
        Console.WriteLine(typeof(int).Assembly.FullName);
    }
}

/* This example produces output similar to the following:

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

Class Example
    Shared Sub Main()
        Console.WriteLine("The FullName property (also called the display name) of...")
        Console.WriteLine("...the currently executing assembly:")
        Console.WriteLine(GetType(Example).Assembly.FullName)

        Console.WriteLine("...the assembly that contains the Int32 type:")
        Console.WriteLine(GetType(Integer).Assembly.FullName)
    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:
'ExampleAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
'...the assembly that contains the Int32 type:
'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

설명

어셈블리의 표시 이름 형식에 대 한 설명은 AssemblyName을 참조 하세요.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. 대신 표시 이름을 구문 분석 하 고 새 AssemblyName의 적절 한 필드를 채우는 AssemblyName 생성자에 전달 합니다.Instead, pass the display name to the AssemblyName constructor, which parses it and populates the appropriate fields of the new AssemblyName.

.NET Framework 버전 2.0에서는 프로세서 아키텍처가 어셈블리 id에 추가 되 고 어셈블리 이름 문자열의 일부로 지정할 수 있습니다.In the .NET Framework version 2.0, processor architecture is added to assembly identity, and can be specified as part of assembly name strings. 그러나 호환성을 위해 FullName 속성에서 반환 되는 문자열에는 포함 되지 않습니다.However, it is not included in the string returned by the FullName property, for compatibility reasons. AssemblyName.ProcessorArchitecture을 참조하세요.See AssemblyName.ProcessorArchitecture.

적용 대상

추가 정보