_ModuleBuilderとは? わかりやすく解説

ModuleBuilder クラス

モジュールを定義および表現します。DefineDynamicModule を呼び出して、ModuleBuilder のインスタンス取得します

名前空間: System.Reflection.Emit
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public Class ModuleBuilder
    Inherits Module
    Implements _ModuleBuilder
Dim instance As ModuleBuilder
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
public class ModuleBuilder : Module, _ModuleBuilder
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
public ref class ModuleBuilder : public
 Module, _ModuleBuilder
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
public class ModuleBuilder extends Module implements
 _ModuleBuilder
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.None) 
public class ModuleBuilder extends
 Module implements _ModuleBuilder
解説解説
使用例使用例

次のコード例は、ModuleBuilder使用して動的モジュール作成する方法示してます。ModuleBuilder は、コンストラクタではなく、AssemblyBuilder の DefineDynamicModule呼び出しによって作成されます。

Imports System
Imports System.Reflection
Imports System.Reflection.Emit
Imports System.Security.Permissions

Public Class CodeGenerator
   Private myAssemblyBuilder As AssemblyBuilder

   Public Sub New()
      ' Get the current application domain for the current thread.
      Dim myCurrentDomain As AppDomain = AppDomain.CurrentDomain
      Dim myAssemblyName As New
 AssemblyName()
      myAssemblyName.Name = "TempAssembly"

      ' Define a dynamic assembly in the current application domain.
      myAssemblyBuilder = _
               myCurrentDomain.DefineDynamicAssembly(myAssemblyName, AssemblyBuilderAccess.Run)

      ' Define a dynamic module in this assembly.
      Dim myModuleBuilder As ModuleBuilder
 = myAssemblyBuilder.DefineDynamicModule("TempModule")

      ' Define a runtime class with specified name and attributes.
      Dim myTypeBuilder As TypeBuilder = _
               myModuleBuilder.DefineType("TempClass",
 TypeAttributes.Public)

      ' Add 'Greeting' field to the class, with the specified attribute
 and type.
      Dim greetingField As FieldBuilder = _
               myTypeBuilder.DefineField("Greeting",
 GetType(String), FieldAttributes.Public)
      Dim myMethodArgs As Type() = {GetType(String)}

      ' Add 'MyMethod' method to the class, with the specified attribute
 and signature.
      Dim myMethod As MethodBuilder = _
               myTypeBuilder.DefineMethod("MyMethod",
 MethodAttributes.Public, _
               CallingConventions.Standard, Nothing, myMethodArgs)

      Dim methodIL As ILGenerator = myMethod.GetILGenerator()
      methodIL.EmitWriteLine("In the method...")
      methodIL.Emit(OpCodes.Ldarg_0)
      methodIL.Emit(OpCodes.Ldarg_1)
      methodIL.Emit(OpCodes.Stfld, greetingField)
      methodIL.Emit(OpCodes.Ret)
      myTypeBuilder.CreateType()
   End Sub 'New

   Public ReadOnly Property
 MyAssembly() As AssemblyBuilder
      Get
         Return Me.myAssemblyBuilder
      End Get
   End Property
End Class 'CodeGenerator

Public Class TestClass
   <PermissionSetAttribute(SecurityAction.Demand, Name:="FullTrust")>
 _
   Public Shared Sub Main()
      Dim myCodeGenerator As New
 CodeGenerator()
      ' Get the assembly builder for 'myCodeGenerator' object.
      Dim myAssemblyBuilder As AssemblyBuilder
 = myCodeGenerator.MyAssembly
      ' Get the module builder for the above assembly builder object
 .
      Dim myModuleBuilder As ModuleBuilder
 = myAssemblyBuilder.GetDynamicModule("TempModule")
      Console.WriteLine("The fully qualified name and path to
 this " + _
                        "module is :" + myModuleBuilder.FullyQualifiedName)
      Dim myType As Type = myModuleBuilder.GetType("TempClass")
      Dim myMethodInfo As MethodInfo = myType.GetMethod("MyMethod")
      ' Get the token used to identify the method within this module.
      Dim myMethodToken As MethodToken = myModuleBuilder.GetMethodToken(myMethodInfo)
      Console.WriteLine("Token used to identify the method
 of 'myType'" + _
                        " within the module is {0:x}",
 myMethodToken.Token)
      Dim args As Object()
 = {"Hello."}
      Dim myObject As Object
 = Activator.CreateInstance(myType, Nothing, Nothing)
      myMethodInfo.Invoke(myObject, args)
   End Sub 'Main
End Class 'TestClass
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Security.Permissions;

public class CodeGenerator
{
   AssemblyBuilder myAssemblyBuilder;
   public CodeGenerator()
   {
      // Get the current application domain for the current thread.
      AppDomain myCurrentDomain = AppDomain.CurrentDomain;
      AssemblyName myAssemblyName = new AssemblyName();
      myAssemblyName.Name = "TempAssembly";

      // Define a dynamic assembly in the current application domain.
      myAssemblyBuilder = myCurrentDomain.DefineDynamicAssembly
                     (myAssemblyName, AssemblyBuilderAccess.Run);

      // Define a dynamic module in this assembly.
      ModuleBuilder myModuleBuilder = myAssemblyBuilder.
                                      DefineDynamicModule("TempModule");

      // Define a runtime class with specified name and attributes.
      TypeBuilder myTypeBuilder = myModuleBuilder.DefineType
                                       ("TempClass",TypeAttributes.Public);

      // Add 'Greeting' field to the class, with the specified attribute
 and type.
      FieldBuilder greetingField = myTypeBuilder.DefineField("Greeting",
 
                                                            typeof(String), FieldAttributes.Public);
      Type[] myMethodArgs = { typeof(String) };

      // Add 'MyMethod' method to the class, with the specified attribute
 and signature.
      MethodBuilder myMethod = myTypeBuilder.DefineMethod("MyMethod",
         MethodAttributes.Public, CallingConventions.Standard, null
,myMethodArgs);

      ILGenerator methodIL = myMethod.GetILGenerator();
      methodIL.EmitWriteLine("In the method...");
      methodIL.Emit(OpCodes.Ldarg_0);
      methodIL.Emit(OpCodes.Ldarg_1);
      methodIL.Emit(OpCodes.Stfld, greetingField);
      methodIL.Emit(OpCodes.Ret);
      myTypeBuilder.CreateType();
   }
   public AssemblyBuilder MyAssembly
   {
      get
      {
         return this.myAssemblyBuilder;
      }
   }
}
public class TestClass
{
   [PermissionSetAttribute(SecurityAction.Demand, Name="FullTrust")]
   public static void Main()
   {
      CodeGenerator myCodeGenerator = new CodeGenerator();
      // Get the assembly builder for 'myCodeGenerator' object.
      AssemblyBuilder myAssemblyBuilder = myCodeGenerator.MyAssembly;
      // Get the module builder for the above assembly builder object
 .
      ModuleBuilder myModuleBuilder = myAssemblyBuilder.
                                                           GetDynamicModule("TempModule");
      Console.WriteLine("The fully qualified name and path to this
 "
                               + "module is :" +myModuleBuilder.FullyQualifiedName);
      Type myType = myModuleBuilder.GetType("TempClass");
      MethodInfo myMethodInfo = 
                                                myType.GetMethod("MyMethod");
       // Get the token used to identify the method within this module.
      MethodToken myMethodToken = 
                        myModuleBuilder.GetMethodToken(myMethodInfo);
      Console.WriteLine("Token used to identify the method of 'myType'"
                    + " within the module is {0:x}",myMethodToken.Token);
     object[] args={"Hello."};
     object myObject = Activator.CreateInstance(myType,null,null);
     myMethodInfo.Invoke(myObject,args);
   }
}
using namespace System;
using namespace System::Reflection;
using namespace System::Reflection::Emit;
public ref class CodeGenerator
{
private:
   AssemblyBuilder^ myAssemblyBuilder;

public:
   CodeGenerator()
   {
      // Get the current application domain for the current thread.
      AppDomain^ myCurrentDomain = AppDomain::CurrentDomain;
      AssemblyName^ myAssemblyName = gcnew AssemblyName;
      myAssemblyName->Name = "TempAssembly";

      // Define a dynamic assembly in the current application domain.
      myAssemblyBuilder = myCurrentDomain->DefineDynamicAssembly( myAssemblyName,
 AssemblyBuilderAccess::Run );

      // Define a dynamic module in this assembly.
      ModuleBuilder^ myModuleBuilder = myAssemblyBuilder->DefineDynamicModule(
 "TempModule" );

      // Define a runtime class with specified name and attributes.
      TypeBuilder^ myTypeBuilder = myModuleBuilder->DefineType( "TempClass",
 TypeAttributes::Public );

      // Add 'Greeting' field to the class, with the specified attribute
 and type.
      FieldBuilder^ greetingField = myTypeBuilder->DefineField( "Greeting",
 String::typeid, FieldAttributes::Public );
      array<Type^>^myMethodArgs = {String::typeid};

      // Add 'MyMethod' method to the class, with the specified attribute
 and signature.
      MethodBuilder^ myMethod = myTypeBuilder->DefineMethod( "MyMethod",
 MethodAttributes::Public, CallingConventions::Standard, nullptr, myMethodArgs );
      ILGenerator^ methodIL = myMethod->GetILGenerator();
      methodIL->EmitWriteLine( "In the method..." );
      methodIL->Emit( OpCodes::Ldarg_0 );
      methodIL->Emit( OpCodes::Ldarg_1 );
      methodIL->Emit( OpCodes::Stfld, greetingField );
      methodIL->Emit( OpCodes::Ret );
      myTypeBuilder->CreateType();
   }

   property AssemblyBuilder^ MyAssembly 
   {
      AssemblyBuilder^ get()
      {
         return this->myAssemblyBuilder;
      }
   }
};

int main()
{
   CodeGenerator^ myCodeGenerator = gcnew CodeGenerator;

   // Get the assembly builder for 'myCodeGenerator' object.
   AssemblyBuilder^ myAssemblyBuilder = myCodeGenerator->MyAssembly;

   // Get the module builder for the above assembly builder object .
   ModuleBuilder^ myModuleBuilder = myAssemblyBuilder->GetDynamicModule( "TempModule"
 );
   Console::WriteLine( "The fully qualified name and path to this
 module is :{0}", myModuleBuilder->FullyQualifiedName );
   Type^ myType = myModuleBuilder->GetType( "TempClass" );
   MethodInfo^ myMethodInfo = myType->GetMethod( "MyMethod" );

   // Get the token used to identify the method within this module.
   MethodToken myMethodToken = myModuleBuilder->GetMethodToken( myMethodInfo );
   Console::WriteLine( "Token used to identify the method of 'myType'"
   " within the module is {0:x}", myMethodToken.Token );
   array<Object^>^args = {"Hello."};
   Object^ myObject = Activator::CreateInstance( myType, nullptr, nullptr );
   myMethodInfo->Invoke( myObject, args );
}
継承階層継承階層
System.Object
   System.Reflection.Module
    System.Reflection.Emit.ModuleBuilder
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ModuleBuilder メンバ
System.Reflection.Emit 名前空間

ModuleBuilder プロパティ


ModuleBuilder メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド CreateGlobalFunctions この動的モジュールグローバル関数定義グローバル データ定義を完了します
パブリック メソッド DefineDocument ソース文書定義します
パブリック メソッド DefineEnum 指定した型の value__ という単一の非静的フィールドを持つ値型と共に列挙型定義します
パブリック メソッド DefineGlobalMethod オーバーロードされますグローバル メソッド定義します
パブリック メソッド DefineInitializedData ポータブル実行可能 (PE) ファイルの .sdata セクション初期化済みデータ フィールド定義します
パブリック メソッド DefineManifestResource 動的アセンブリ埋め込まれるマニフェスト リソース BLOB定義します
パブリック メソッド DefinePInvokeMethod オーバーロードされますPInvoke メソッド定義します
パブリック メソッド DefineResource オーバーロードされます。 このモジュール格納するマネージ埋め込みリソース定義します
パブリック メソッド DefineType オーバーロードされますTypeBuilder構築します値型定義するには、ValueType派生する型を定義します
パブリック メソッド DefineUninitializedData ポータブル実行可能 (PE) ファイルの .sdata セクション初期化されていないデータ フィールド定義します
パブリック メソッド DefineUnmanagedResource オーバーロードされます。 このモジュールのアンマネージ リソース定義しますBLOB は、Win32 リソース正し書式である必要があります
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド FindTypes  指定したフィルタフィルタ基準によって受け入れられクラス配列返します。 ( Module から継承されます。)
パブリック メソッド GetArrayMethod 配列クラスの名前付メソッド返します
パブリック メソッド GetArrayMethodToken 配列クラスの名前付メソッドトークン返します
パブリック メソッド GetConstructorToken このモジュール内で指定したコンストラクタ識別するトークン返します
パブリック メソッド GetCustomAttributes  オーバーロードされますカスタム属性返します。 ( Module から継承されます。)
パブリック メソッド GetField  オーバーロードされます指定したフィールド返します。 ( Module から継承されます。)
パブリック メソッド GetFields  オーバーロードされますモジュール定義されているグローバル フィールド返します。 ( Module から継承されます。)
パブリック メソッド GetFieldToken このモジュール内で指定したフィールド識別するトークン返します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetMethod  オーバーロードされます指定した基準メソッド返します。 ( Module から継承されます。)
パブリック メソッド GetMethods  オーバーロードされますモジュール定義されているグローバル メソッド返します。 ( Module から継承されます。)
パブリック メソッド GetMethodToken このモジュール内で指定したメソッド識別するトークン返します
パブリック メソッド GetObjectData  シリアル化されたオブジェクトに対して、ISerializable 実装提供します。 ( Module から継承されます。)
パブリック メソッド GetPEKind  モジュール内のコード性質およびモジュール対象プラットフォームを示す値のペア取得します。 ( Module から継承されます。)
パブリック メソッド GetSignatureToken オーバーロードされますシグネチャ トークン定義します
パブリック メソッド GetSignerCertificate  このモジュール属すアセンブリAuthenticode 署名含まれた、証明書対応する X509Certificate オブジェクト返しますアセンブリAuthenticode 署名ない場合null 参照 (Visual Basic では Nothing) が返されます。 ( Module から継承されます。)
パブリック メソッド GetStringConstant モジュール定数プール指定され文字列トークン返します
パブリック メソッド GetSymWriter この動的モジュール関連付けられたシンボル ライタ返します
パブリック メソッド GetType オーバーロードされます。 このモジュール定義されている名前付きの型を取得します
パブリック メソッド GetTypes オーバーライドされます。 このモジュール定義されているすべてのクラス返します
パブリック メソッド GetTypeToken オーバーロードされます。 型トークン返します
パブリック メソッド IsDefined  指定した attributeType がこのモジュール定義されているかどうか判断します。 ( Module から継承されます。)
パブリック メソッド IsResource  オブジェクトリソースかどうかを示す値を取得します。 ( Module から継承されます。)
パブリック メソッド IsTransient この動的モジュール遷移かどうか確認します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ResolveField  オーバーロードされますメタデータ トークン識別されるフィールド返します。 ( Module から継承されます。)
パブリック メソッド ResolveMember  オーバーロードされますメタデータ トークン識別される型またはメンバ返します。 ( Module から継承されます。)
パブリック メソッド ResolveMethod  オーバーロードされますメタデータ トークン識別されるメソッド返します。 ( Module から継承されます。)
パブリック メソッド ResolveSignature  メタデータ トークン識別されるシグネチャ BLOB返します。 ( Module から継承されます。)
パブリック メソッド ResolveString  指定したメタデータ トークン識別される文字列返します。 ( Module から継承されます。)
パブリック メソッド ResolveType  オーバーロードされますメタデータ トークン識別される型を返します。 ( Module から継承されます。)
パブリック メソッド SetCustomAttribute オーバーロードされますカスタム属性設定します
パブリック メソッド SetSymCustomAttribute シンボリック情報格納されるカスタム属性設定します
パブリック メソッド SetUserEntryPoint ユーザー エントリ ポイント設定します
パブリック メソッド ToString  モジュールの名前を返します。 ( Module から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.GetIDsOfNames 一連の名前を対応する一連のディスパッチ識別子割り当てます
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.GetTypeInfo オブジェクト型情報取得しますその後は、インターフェイス型情報取得使用できます
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.GetTypeInfoCount オブジェクト提供する型情報インターフェイスの数 (0 または 1) を取得します
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.Invoke オブジェクト公開するプロパティおよびメソッドアクセスできるようにします。
参照参照

関連項目

ModuleBuilder クラス
System.Reflection.Emit 名前空間

ModuleBuilder メンバ

モジュールを定義および表現します。DefineDynamicModule を呼び出して、ModuleBuilder のインスタンス取得します

ModuleBuilder データ型公開されるメンバを以下の表に示します


パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド CreateGlobalFunctions この動的モジュールグローバル関数定義グローバル データ定義を完了します
パブリック メソッド DefineDocument ソース文書定義します
パブリック メソッド DefineEnum 指定した型の value__ という単一の非静的フィールドを持つ値型と共に列挙型定義します
パブリック メソッド DefineGlobalMethod オーバーロードされますグローバル メソッド定義します
パブリック メソッド DefineInitializedData ポータブル実行可能 (PE) ファイルの .sdata セクション初期化済みデータ フィールド定義します
パブリック メソッド DefineManifestResource 動的アセンブリ埋め込まれるマニフェスト リソース BLOB定義します
パブリック メソッド DefinePInvokeMethod オーバーロードされますPInvoke メソッド定義します
パブリック メソッド DefineResource オーバーロードされます。 このモジュール格納するマネージ埋め込みリソース定義します
パブリック メソッド DefineType オーバーロードされますTypeBuilder構築します値型定義するには、ValueType派生する型を定義します
パブリック メソッド DefineUninitializedData ポータブル実行可能 (PE) ファイルの .sdata セクション初期化されていないデータ フィールド定義します
パブリック メソッド DefineUnmanagedResource オーバーロードされます。 このモジュールのアンマネージ リソース定義しますBLOB は、Win32 リソース正し書式である必要があります
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド FindTypes  指定したフィルタフィルタ基準によって受け入れられクラス配列返します。 (Module から継承されます。)
パブリック メソッド GetArrayMethod 配列クラスの名前付メソッド返します
パブリック メソッド GetArrayMethodToken 配列クラスの名前付メソッドトークン返します
パブリック メソッド GetConstructorToken このモジュール内で指定したコンストラクタ識別するトークン返します
パブリック メソッド GetCustomAttributes  オーバーロードされますカスタム属性返します。 (Module から継承されます。)
パブリック メソッド GetField  オーバーロードされます指定したフィールド返します。 (Module から継承されます。)
パブリック メソッド GetFields  オーバーロードされますモジュール定義されているグローバル フィールド返します。 (Module から継承されます。)
パブリック メソッド GetFieldToken このモジュール内で指定したフィールド識別するトークン返します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetMethod  オーバーロードされます指定した基準メソッド返します。 (Module から継承されます。)
パブリック メソッド GetMethods  オーバーロードされますモジュール定義されているグローバル メソッド返します。 (Module から継承されます。)
パブリック メソッド GetMethodToken このモジュール内で指定したメソッド識別するトークン返します
パブリック メソッド GetObjectData  シリアル化されたオブジェクトに対して、ISerializable 実装提供します。 (Module から継承されます。)
パブリック メソッド GetPEKind  モジュール内のコード性質およびモジュール対象プラットフォームを示す値のペア取得します。 (Module から継承されます。)
パブリック メソッド GetSignatureToken オーバーロードされますシグネチャ トークン定義します
パブリック メソッド GetSignerCertificate  このモジュール属すアセンブリAuthenticode 署名含まれた、証明書対応する X509Certificate オブジェクト返しますアセンブリAuthenticode 署名ない場合null 参照 (Visual Basic では Nothing) が返されます。 (Module から継承されます。)
パブリック メソッド GetStringConstant モジュール定数プール指定され文字列トークン返します
パブリック メソッド GetSymWriter この動的モジュール関連付けられたシンボル ライタ返します
パブリック メソッド GetType オーバーロードされます。 このモジュール定義されている名前付きの型を取得します
パブリック メソッド GetTypes オーバーライドされます。 このモジュール定義されているすべてのクラス返します
パブリック メソッド GetTypeToken オーバーロードされます。 型トークン返します
パブリック メソッド IsDefined  指定した attributeType がこのモジュール定義されているかどうか判断します。 (Module から継承されます。)
パブリック メソッド IsResource  オブジェクトリソースかどうかを示す値を取得します。 (Module から継承されます。)
パブリック メソッド IsTransient この動的モジュール遷移かどうか確認します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ResolveField  オーバーロードされますメタデータ トークン識別されるフィールド返します。 (Module から継承されます。)
パブリック メソッド ResolveMember  オーバーロードされますメタデータ トークン識別される型またはメンバ返します。 (Module から継承されます。)
パブリック メソッド ResolveMethod  オーバーロードされますメタデータ トークン識別されるメソッド返します。 (Module から継承されます。)
パブリック メソッド ResolveSignature  メタデータ トークン識別されるシグネチャ BLOB返します。 (Module から継承されます。)
パブリック メソッド ResolveString  指定したメタデータ トークン識別される文字列返します。 (Module から継承されます。)
パブリック メソッド ResolveType  オーバーロードされますメタデータ トークン識別される型を返します。 (Module から継承されます。)
パブリック メソッド SetCustomAttribute オーバーロードされますカスタム属性設定します
パブリック メソッド SetSymCustomAttribute シンボリック情報格納されるカスタム属性設定します
パブリック メソッド SetUserEntryPoint ユーザー エントリ ポイント設定します
パブリック メソッド ToString  モジュールの名前を返します。 (Module から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.GetIDsOfNames 一連の名前を対応する一連のディスパッチ識別子割り当てます
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.GetTypeInfo オブジェクト型情報取得しますその後は、インターフェイス型情報取得使用できます
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.GetTypeInfoCount オブジェクト提供する型情報インターフェイスの数 (0 または 1) を取得します
インターフェイスの明示的な実装 System.Runtime.InteropServices._ModuleBuilder.Invoke オブジェクト公開するプロパティおよびメソッドアクセスできるようにします。
参照参照

関連項目

ModuleBuilder クラス
System.Reflection.Emit 名前空間

_ModuleBuilder インターフェイス

メモ : このインターフェイスは、.NET Framework version 2.0新しく追加されたものです。

System.Reflection.Emit.ModuleBuilder クラスアンマネージ コード公開します

 

名前空間: System.Runtime.InteropServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<CLSCompliantAttribute(False)> _
<GuidAttribute("D05FFA9A-04AF-3519-8EE1-8D93AD73430B")>
 _
<ComVisibleAttribute(True)> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface _ModuleBuilder
Dim instance As _ModuleBuilder
[CLSCompliantAttribute(false)] 
[GuidAttribute("D05FFA9A-04AF-3519-8EE1-8D93AD73430B")] 
[ComVisibleAttribute(true)] 
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] 
public interface _ModuleBuilder
[CLSCompliantAttribute(false)] 
[GuidAttribute(L"D05FFA9A-04AF-3519-8EE1-8D93AD73430B")] 
[ComVisibleAttribute(true)] 
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)] 
public interface class _ModuleBuilder
/** @attribute CLSCompliantAttribute(false) */ 
/** @attribute GuidAttribute("D05FFA9A-04AF-3519-8EE1-8D93AD73430B") */
 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown) */ 
public interface _ModuleBuilder
CLSCompliantAttribute(false) 
GuidAttribute("D05FFA9A-04AF-3519-8EE1-8D93AD73430B") 
ComVisibleAttribute(true) 
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown) 
public interface _ModuleBuilder
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
_ModuleBuilder メンバ
System.Runtime.InteropServices 名前空間

_ModuleBuilder メソッド


_ModuleBuilder メンバ




英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「_ModuleBuilder」の関連用語

_ModuleBuilderのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



_ModuleBuilderのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS