CustomAttributeNamedArgument Constructor (MemberInfo^, CustomAttributeTypedArgument)
Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies a CustomAttributeTypedArgument object that describes the type and value of the field or property.
Assembly: mscorlib (in mscorlib.dll)
public:
CustomAttributeNamedArgument(
MemberInfo^ memberInfo,
CustomAttributeTypedArgument typedArgument
)
Parameters
- memberInfo
-
Type:
System.Reflection::MemberInfo^
A field or property of the custom attribute. The new CustomAttributeNamedArgument object represents this member and its value.
- typedArgument
-
Type:
System.Reflection::CustomAttributeTypedArgument
An object that describes the type and value of the field or property.
| Exception | Condition |
|---|---|
| ArgumentNullException | memberInfo is null. |
This constructor is for use by inheritors of the CustomAttributeNamedArgument class. It is not intended for use in application code.
Available since 4.0