The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Module::Name Property
.NET Framework (current version)
Gets a String representing the name of the module with the path removed.
Assembly: mscorlib (in mscorlib.dll)
Name is a platform-dependent string.
If the assembly for this module was loaded from a byte array then the FullyQualifiedName for the module will be: <Unknown>.
To get the name and the path, use FullyQualifiedName.
This example shows the effect of the ScopeName, FullyQualifiedName, and Name properties.
using namespace System; using namespace System::Reflection; int main() { Module^ mod = Assembly::GetExecutingAssembly()->GetModules()[ 0 ]; Console::WriteLine( "Module Name is {0}", mod->Name ); Console::WriteLine( "Module FullyQualifiedName is {0}", mod->FullyQualifiedName ); Console::WriteLine( "Module ScopeName is {0}", mod->ScopeName ); } /* This code produces the following output: Module Name is modname.exe Module FullyQualifiedName is C:\Bin\modname.exe Module ScopeName is modname.exe */
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: