Share via


DynamicMethod.Module Properti

Definisi

Mendapatkan modul yang metode dinamisnya dikaitkan secara logis.

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

Nilai Properti

metode Module dinamis saat ini dikaitkan.

Contoh

Contoh kode berikut menampilkan Module properti metode dinamis. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk DynamicMethod kelas .

// 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)

Keterangan

Jika modul ditentukan saat metode dinamis dibuat, properti ini mengembalikan modul tersebut. Jika jenis ditentukan sebagai pemilik saat metode dinamis dibuat, properti ini mengembalikan modul yang berisi jenis tersebut.

Berlaku untuk