Assembly.FullName 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
어셈블리의 표시 이름을 가져옵니다.
public:
virtual property System::String ^ FullName { System::String ^ get(); };
public virtual string FullName { get; }
public virtual string? FullName { get; }
member this.FullName : string
Public Overridable ReadOnly Property FullName As String
속성 값
어셈블리의 표시 이름입니다.
구현
예제
다음은 현재 실행 중인 어셈블리의 표시 이름과 형식이 포함된 Int32 어셈블리의 표시 이름(int
C#, Integer
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 하세요.
참고
표시 이름을 구문 분석하기 위해 사용자 고유의 코드를 작성하는 것은 권장되지 않습니다. 대신, 표시 이름을 AssemblyName 생성자에 전달하여 구문 분석하고 새 AssemblyName필드의 적절한 필드를 채웁니다.
.NET Framework 버전 2.0에서는 프로세서 아키텍처가 어셈블리 ID에 추가되며 어셈블리 이름 문자열의 일부로 지정할 수 있습니다. 그러나 호환성을 위해 속성에서 반환하는 FullName 문자열에는 포함되지 않습니다. AssemblyName.ProcessorArchitecture을 참조하세요.