Module::ScopeName Property
.NET Framework (current version)
Gets a string representing the name of the module.
Assembly: mscorlib (in mscorlib.dll)
The ScopeName property is not used by the common language runtime, but you can use it to store any string you want in the property when you emit a module using the metadata APIs. Reflection itself does not allow you to set the ScopeName property.
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 ); } /* Produces this output: Module Name is modname.exe Module FullyQualifiedName is C:\Bin\modname.exe Module ScopeName is modname.exe */
.NET Framework
Available since 1.1
Available since 1.1
Show: