TypeBuilder.DefineMethodOverrideCore(MethodInfo, MethodInfo) 方法

定義

在衍生類別中覆寫時,指定實作指定方法宣告的指定方法主體,可能使用不同的名稱。

protected:
 abstract void DefineMethodOverrideCore(System::Reflection::MethodInfo ^ methodInfoBody, System::Reflection::MethodInfo ^ methodInfoDeclaration);
protected abstract void DefineMethodOverrideCore (System.Reflection.MethodInfo methodInfoBody, System.Reflection.MethodInfo methodInfoDeclaration);
abstract member DefineMethodOverrideCore : System.Reflection.MethodInfo * System.Reflection.MethodInfo -> unit
Protected MustOverride Sub DefineMethodOverrideCore (methodInfoBody As MethodInfo, methodInfoDeclaration As MethodInfo)

參數

methodInfoBody
MethodInfo

要使用的方法主體。 應該是 MethodBuilder 物件。

methodInfoDeclaration
MethodInfo

要使用其宣告的方法。

適用於