DynamicMethod.Module プロパティ

定義

動的メソッドが論理的に関連付けられるモジュールを取得します。

public:
 virtual property System::Reflection::Module ^ Module { System::Reflection::Module ^ get(); };
public override System.Reflection.Module Module { get; }
member this.Module : System.Reflection.Module
Public Overrides ReadOnly Property Module As Module

プロパティ値

現在の動的メソッドが関連付けられる Module

次のコード例では、 Module 動的メソッドの プロパティを表示します。 このコード例は、DynamicMethod クラスのために提供されている大規模な例の一部です。

// Display the module specified when the dynamic method was created.
Console::WriteLine("\r\nModule: {0}", hello->Module);
// Display the module specified when the dynamic method was created.
Console.WriteLine("\r\nModule: {0}", hello.Module);
' Display the module specified when the dynamic method was created.
Console.WriteLine(vbCrLf & "Module: {0}", hello.Module)

注釈

動的メソッドの作成時にモジュールが指定された場合、このプロパティはそのモジュールを返します。 動的メソッドの作成時に型が所有者として指定された場合、このプロパティは、その型を含むモジュールを返します。

適用対象