Module.ScopeName Property
.NET Framework 4.5
Gets a string representing the name of the module.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
This example shows the effect of the ScopeName, FullyQualifiedName, and Name properties.
using System.Reflection; using System; public class Simple { public static void Main () { Module mod = Assembly.GetExecutingAssembly().GetModules () [0]; Console.WriteLine ("Module Name is " + mod.Name); Console.WriteLine ("Module FullyQualifiedName is " + mod.FullyQualifiedName); Console.WriteLine ("Module ScopeName is " + mod.ScopeName); } } /* Produces this output: Module Name is modname.exe Module FullyQualifiedName is C:\Bin\modname.exe Module ScopeName is modname.exe */
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.