TypeBuilder.DefinePropertyCore メソッド

定義

派生クラスでオーバーライドされると、指定された名前、呼び出し規則、プロパティシグネチャ、およびカスタム修飾子を使用して、新しいプロパティを型に追加します。

protected:
 abstract System::Reflection::Emit::PropertyBuilder ^ DefinePropertyCore(System::String ^ name, System::Reflection::PropertyAttributes attributes, System::Reflection::CallingConventions callingConvention, Type ^ returnType, cli::array <Type ^> ^ returnTypeRequiredCustomModifiers, cli::array <Type ^> ^ returnTypeOptionalCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ parameterTypeRequiredCustomModifiers, cli::array <cli::array <Type ^> ^> ^ parameterTypeOptionalCustomModifiers);
protected abstract System.Reflection.Emit.PropertyBuilder DefinePropertyCore (string name, System.Reflection.PropertyAttributes attributes, System.Reflection.CallingConventions callingConvention, Type returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers);
abstract member DefinePropertyCore : string * System.Reflection.PropertyAttributes * System.Reflection.CallingConventions * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.PropertyBuilder
Protected MustOverride Function DefinePropertyCore (name As String, attributes As PropertyAttributes, callingConvention As CallingConventions, returnType As Type, returnTypeRequiredCustomModifiers As Type(), returnTypeOptionalCustomModifiers As Type(), parameterTypes As Type(), parameterTypeRequiredCustomModifiers As Type()(), parameterTypeOptionalCustomModifiers As Type()()) As PropertyBuilder

パラメーター

name
String

プロパティの名前。 name に埋め込み null 値を含めることはできません。

attributes
PropertyAttributes

プロパティの属性を指定する列挙値のビットごとの組み合わせ。

callingConvention
CallingConventions

プロパティ アクセサーの呼び出し規則。

returnType
Type

プロパティの戻り値の型。

returnTypeRequiredCustomModifiers
Type[]

必要なカスタム修飾子を表す型の配列

returnTypeOptionalCustomModifiers
Type[]

省略可能なカスタム修飾子を表す型の配列

parameterTypes
Type[]

メソッドのパラメーター型。

parameterTypeRequiredCustomModifiers
Type[][]

型の配列の配列。 型の各配列は、対応するパラメーターに必要なカスタム修飾子を表します。

parameterTypeOptionalCustomModifiers
Type[][]

型の配列の配列。 型の各配列は、対応するパラメーターのオプションのカスタム修飾子を表します。

戻り値

定義されたプロパティ。

適用対象