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

プロパティ値

MethodBase

現在の GenericTypeParameterBuilder がジェネリック メソッドの型パラメーターを表している場合、宣言するメソッドを表す MethodInfo。それ以外の場合、null

注釈

プロパティが DeclaringMethod 指定されていない null場合、宣言メソッドはジェネリック メソッド定義であり、 DeclaringMethod.IsGenericMethodDefinition 次のようになります true

適用対象