다음을 통해 공유


Type.FullName 속성

어셈블리를 제외한 Type의 네임스페이스를 비롯하여 Type의 정규화된 이름을 가져옵니다.

네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public MustOverride ReadOnly Property FullName As String
‘사용 방법
Dim instance As Type
Dim value As String

value = instance.FullName
public abstract string FullName { get; }
public:
virtual property String^ FullName {
    String^ get () abstract;
}
/** @property */
public abstract String get_FullName ()
public abstract function get FullName () : String

속성 값

어셈블리를 제외한 Type의 네임스페이스를 비롯하여 Type의 정규화된 이름이 포함된 문자열입니다. 현재 인스턴스가 제네릭 형식 매개 변수를 나타내는 경우에는 Null 참조(Visual Basic의 경우 Nothing)입니다.

설명

예를 들어, C# 문자열 형식의 정규화된 이름은 System.String입니다. 이와 반대로 어셈블리로 한정된 이름은 AssemblyQualifiedName 속성에서 제공되는 어셈블리를 전체 이름에 추가한 것입니다.

현재 Type이 제네릭 형식을 나타내는 경우 FullName에서 반환하는 문자열의 형식 인수는 어셈블리, 버전 등으로 정규화되지만 제네릭 형식의 문자열 표현 자체는 어셈블리로 한정되지 않습니다. 따라서 t.FullName + ", " + t.Assembly.FullName을 연결하면 제네릭이 아닌 형식의 경우와 마찬가지로 t.AssemblyQualifiedName과 동일한 결과가 나옵니다.

현재 Type이 제네릭 형식의 형식 매개 변수를 나타내는 경우 이 속성은 Null 참조(Visual Basic의 경우 Nothing)을 반환합니다.

이 속성은 읽기 전용입니다.

예제

다음 예제에서는 지정된 형식의 전체 이름을 표시합니다.

Imports System

Class TestFullName
   
    Public Shared Sub Main()
        Dim t As Type = GetType(Array)
        Console.WriteLine("The full name of the Array type is {0}.", t.FullName)
    End Sub 'Main
End Class 'TestFullName
using System;
class TestFullName 
{
public static void Main() 
    {
    Type t = typeof(Array);
    Console.WriteLine("The full name of the Array type is {0}.", t.FullName);
    }
} 
using namespace System;
int main()
{
   Type^ t = Array::typeid;
   Console::WriteLine( "The full name of the Array type is {0}.", t->FullName );
}
import System.*;

class TestFullName
{
    public static void main(String[] args)
    {
        Type t = Array.class.ToType();
        Console.WriteLine("The full name of the Array type is {0}.", 
            t.get_FullName());
    } //main
} //TestFullName

이 코드는 다음과 같이 출력됩니다.

The full name of the Array type is System.Array

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

Type 클래스
Type 멤버
System 네임스페이스
String 클래스
Namespace
Type.AssemblyQualifiedName 속성
AssemblyName

기타 리소스

정규화된 형식 이름 지정