MethodBuilder.DefineParameterCore(Int32, ParameterAttributes, String) メソッド

定義

派生クラスでオーバーライドされると、このメソッドのパラメーターまたは戻り値パラメーターを定義します。

protected:
 abstract System::Reflection::Emit::ParameterBuilder ^ DefineParameterCore(int position, System::Reflection::ParameterAttributes attributes, System::String ^ strParamName);
protected abstract System.Reflection.Emit.ParameterBuilder DefineParameterCore(int position, System.Reflection.ParameterAttributes attributes, string? strParamName);
abstract member DefineParameterCore : int * System.Reflection.ParameterAttributes * string -> System.Reflection.Emit.ParameterBuilder
Protected MustOverride Function DefineParameterCore (position As Integer, attributes As ParameterAttributes, strParamName As String) As ParameterBuilder

パラメーター

position
Int32

パラメーター リスト内のパラメーターの位置。 パラメーターには、最初のパラメーターの数値 1 から始まるインデックスが作成されます。数値 0 は、メソッドの戻り値パラメーターを表します。

attributes
ParameterAttributes

パラメーターの ParameterAttributes

strParamName
String

パラメーターの名前。 名前には、 null 文字列を指定できます。

返品

このメソッドのパラメーターまたはこのメソッドの戻り値パラメーターを表す ParameterBuilder オブジェクトを返します。

注釈

返される ParameterBuilder を使用して、カスタム属性を適用できます。

適用対象