英語で読む

次の方法で共有


CustomAttributeNamedArgument コンストラクター

定義

CustomAttributeNamedArgument クラスの新しいインスタンスを初期化します。

オーバーロード

CustomAttributeNamedArgument(MemberInfo, Object)

カスタム属性の指定されたフィールドまたはプロパティを表す CustomAttributeNamedArgument クラスの新しいインスタンスを初期化し、フィールドまたはプロパティの値を指定します。

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

カスタム属性の指定されたフィールドまたはプロパティを表す CustomAttributeNamedArgument クラスの新しいインスタンスを初期化し、フィールドまたはプロパティの型と値を記述する CustomAttributeTypedArgument オブジェクトを指定します。

CustomAttributeNamedArgument(MemberInfo, Object)

ソース:
CustomAttributeNamedArgument.cs
ソース:
CustomAttributeNamedArgument.cs
ソース:
CustomAttributeNamedArgument.cs

カスタム属性の指定されたフィールドまたはプロパティを表す CustomAttributeNamedArgument クラスの新しいインスタンスを初期化し、フィールドまたはプロパティの値を指定します。

C#
public CustomAttributeNamedArgument(System.Reflection.MemberInfo memberInfo, object? value);
C#
public CustomAttributeNamedArgument(System.Reflection.MemberInfo memberInfo, object value);

パラメーター

memberInfo
MemberInfo

カスタム属性のフィールドまたはプロパティ。 新しい CustomAttributeNamedArgument オブジェクトは、このメンバーとその値を表します。

value
Object

カスタム属性のフィールドまたはプロパティの値。

例外

memberInfonullです。

memberInfo はカスタム属性のフィールドまたはプロパティではありません。

注釈

このコンストラクターは、 クラスの継承者によって使用されます CustomAttributeNamedArgument 。 これは、アプリケーション コードでの使用を目的としたものではありません。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

ソース:
CustomAttributeNamedArgument.cs
ソース:
CustomAttributeNamedArgument.cs
ソース:
CustomAttributeNamedArgument.cs

カスタム属性の指定されたフィールドまたはプロパティを表す CustomAttributeNamedArgument クラスの新しいインスタンスを初期化し、フィールドまたはプロパティの型と値を記述する CustomAttributeTypedArgument オブジェクトを指定します。

C#
public CustomAttributeNamedArgument(System.Reflection.MemberInfo memberInfo, System.Reflection.CustomAttributeTypedArgument typedArgument);

パラメーター

memberInfo
MemberInfo

カスタム属性のフィールドまたはプロパティ。 新しい CustomAttributeNamedArgument オブジェクトは、このメンバーとその値を表します。

typedArgument
CustomAttributeTypedArgument

フィールドまたはプロパティの型と値を記述するオブジェクト。

例外

memberInfonull です。

注釈

このコンストラクターは、 クラスの継承者によって使用されます CustomAttributeNamedArgument 。 これは、アプリケーション コードでの使用を目的としたものではありません。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1