Gets a string representing the fully qualified name and path to this module.
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
Property Value
The fully qualified module name.
ExceptionsThe caller does not have the required permissions.
ExamplesThe following example displays the fully qualified name of the specified module.
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
Remarks
To get the name without the path, use Name.
If the assembly for this module was loaded from a byte array then the FullyQualifiedName
for the module will be: <Unknown>.
Note
The case of module name is platform-dependent.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4