Module.FullyQualifiedName 속성

정의

이 모듈의 정규화된 이름과 경로를 나타내는 문자열을 가져옵니다.

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

속성 값

String

정규화된 모듈 이름입니다.

예외

호출자에게 필요한 사용 권한이 없습니다.

예제

다음 예제에서는 지정된 모듈의 정규화된 이름을 표시합니다.

using namespace System;
using namespace System::Reflection;
int main()
{
   array<Module^>^moduleArray;
   moduleArray = Assembly::GetExecutingAssembly()->GetModules( false );
   
   // In a simple project with only one module, the module at index
   // 0 will be the module containing this class.
   Module^ myModule = moduleArray[ 0 ];
   Console::WriteLine( "myModule.FullyQualifiedName = {0}", myModule->FullyQualifiedName );
}
using System;
using System.Reflection;

namespace ReflectionModule_Examples
{
    class MyMainClass
    {
        static void Main()
        {
            Module[] moduleArray;
            
            moduleArray = typeof(MyMainClass).Assembly.GetModules(false);
            
            // In a simple project with only one module, the module at index
            // 0 will be the module containing this class.
            Module myModule = moduleArray[0];

            Console.WriteLine("myModule.FullyQualifiedName = {0}", myModule.FullyQualifiedName);
        }
    }
}
Imports System.Reflection

Namespace ReflectionModule_Examples
    Class MyMainClass
        Shared Sub Main()
            Dim moduleArray() As [Module]

            moduleArray = GetType(MyMainClass).Assembly.GetModules(False)

            ' In a simple project with only one module, the module at index
            ' 0 will be the module containing this class.
            Dim myModule As [Module] = moduleArray(0)

            Console.WriteLine("myModule.FullyQualifiedName = {0}", myModule.FullyQualifiedName)
        End Sub
    End Class
End Namespace 'ReflectionModule_Examples

설명

경로 없이 이름을 얻으려면 .를 사용합니다 Name.

이 모듈의 어셈블리가 바이트 배열에서 로드된 경우 모듈의 FullyQualifiedName 어셈블리는 다음과 <Unknown>같습니다.

참고

모듈 이름의 경우 플랫폼에 따라 다릅니다.

적용 대상