Module.FullyQualifiedName 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取表示此模块的完全限定名和路径的字符串。
public:
 virtual property System::String ^ FullyQualifiedName { System::String ^ get(); };public virtual string FullyQualifiedName { get; }member this.FullyQualifiedName : stringPublic Overridable ReadOnly Property FullyQualifiedName As String属性值
完全限定的模块名。
例外
调用方没有所需的权限。
示例
以下示例显示指定模块的完全限定名称。
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 模块的 将为: <未知>。
注意
模块名称大小写取决于平台。