Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CustomAttributeNamedArgument Constructor (MemberInfo^, CustomAttributeTypedArgument)

.NET Framework (current version)
 

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.

Namespace:   System.Reflection
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.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft