GenericTypeParameterBuilder.DeclaringMethod 屬性

定義

如果目前的 MethodInfo 表示泛型方法的型別參數,則取得表示宣告方法的 GenericTypeParameterBuilder

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

屬性值

如果目前的 GenericTypeParameterBuilder 表示泛型方法的型別參數,則為代表宣告方法的 MethodInfo;否則為 null

備註

DeclaringMethod如果 屬性不是 null,則宣告方法是泛型方法定義,且 DeclaringMethod.IsGenericMethodDefinitiontrue

適用於