Uređivanje

Dijeli putem


CustomAttributeNamedArgument Constructors

Definition

Initializes a new instance of the CustomAttributeNamedArgument class.

Overloads

CustomAttributeNamedArgument(MemberInfo, Object)

Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies the value of the field or property.

CustomAttributeNamedArgument(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.

CustomAttributeNamedArgument(MemberInfo, Object)

Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs

Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies the value of the field or property.

public:
 CustomAttributeNamedArgument(System::Reflection::MemberInfo ^ memberInfo, System::Object ^ value);
public CustomAttributeNamedArgument (System.Reflection.MemberInfo memberInfo, object? value);
public CustomAttributeNamedArgument (System.Reflection.MemberInfo memberInfo, object value);
new System.Reflection.CustomAttributeNamedArgument : System.Reflection.MemberInfo * obj -> System.Reflection.CustomAttributeNamedArgument
Public Sub New (memberInfo As MemberInfo, value As Object)

Parameters

memberInfo
MemberInfo

A field or property of the custom attribute. The new CustomAttributeNamedArgument object represents this member and its value.

value
Object

The value of the field or property of the custom attribute.

Exceptions

memberInfo is null.

memberInfo is not a field or property of the custom attribute.

Remarks

This constructor is for use by inheritors of the CustomAttributeNamedArgument class. It is not intended for use in application code.

Applies to

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs

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.

public:
 CustomAttributeNamedArgument(System::Reflection::MemberInfo ^ memberInfo, System::Reflection::CustomAttributeTypedArgument typedArgument);
public CustomAttributeNamedArgument (System.Reflection.MemberInfo memberInfo, System.Reflection.CustomAttributeTypedArgument typedArgument);
new System.Reflection.CustomAttributeNamedArgument : System.Reflection.MemberInfo * System.Reflection.CustomAttributeTypedArgument -> System.Reflection.CustomAttributeNamedArgument
Public Sub New (memberInfo As MemberInfo, typedArgument As CustomAttributeTypedArgument)

Parameters

memberInfo
MemberInfo

A field or property of the custom attribute. The new CustomAttributeNamedArgument object represents this member and its value.

typedArgument
CustomAttributeTypedArgument

An object that describes the type and value of the field or property.

Exceptions

memberInfo is null.

Remarks

This constructor is for use by inheritors of the CustomAttributeNamedArgument class. It is not intended for use in application code.

Applies to