Module::IsResource Method ()
.NET Framework (current version)
Gets a value indicating whether the object is a resource.
Assembly: mscorlib (in mscorlib.dll)
The following example demonstrates a use of the IsResource method.
using namespace System; using namespace System::Reflection; int main() { array<Module^>^moduleArray; moduleArray = Assembly::GetExecutingAssembly()->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->IsResource() = {0}", myModule->IsResource() ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: