Module.IsResource メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As Module Dim returnValue As Boolean returnValue = instance.IsResource
オブジェクトがリソースである場合は true。それ以外の場合は false。

Imports System Imports System.Reflection Namespace ReflectionModule_Examples Class MyMainClass Shared Sub Main() Dim moduleArray() As [Module] 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. Dim myModule As [Module] = moduleArray(0) Console.WriteLine("myModule.IsResource() = {0}", myModule.IsResource()) End Sub 'Main End Class 'MyMainClass End Namespace 'ReflectionModule_Examples
using System; using System.Reflection; namespace ReflectionModule_Examples { class MyMainClass { static void Main() { 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()); } } }
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() ); }
package ReflectionModule_Examples; import System.*; import System.Reflection.*; class MyMainClass { public static void main(String[] args) { 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 = (Module)moduleArray.get_Item(0); Console.WriteLine("myModule.IsResource() = {0}", System.Convert.ToString(myModule.IsResource())); } //main } //MyMainClass

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Module.IsResource メソッドのページへのリンク