DynamicMethod.Module 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得動態方法邏輯關聯的模組。
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(vbCrLf & "Module: {0}", hello.Module)
備註
若在動態方法建立時指定了模組,則此屬性會回傳該模組。 若在建立動態方法時指定某型別為擁有者,該屬性會回傳包含該型別的模組。