System.Reflection.CustomAttributeNamedArgument Members

The members of System.Reflection.CustomAttributeNamedArgument are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

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

Initializes a new instance of the System.Reflection.CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies a System.Reflection.CustomAttributeTypedArgument object that describes the type and value of the field or property.

Public Properties

[read-only]
IsFieldbool.

Gets a value that indicates whether the named argument is a field.

[read-only]
MemberInfoMemberInfo.

Gets the attribute member that would be used to set the named argument.

[read-only]
MemberNamestring.

Gets the name of the attribute member that would be used to set the named argument.

[read-only]
TypedValueCustomAttributeTypedArgument.

Gets a System.Reflection.CustomAttributeTypedArgument structure that can be used to obtain the type and value of the current named argument.

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

override
GetHashCode() : int

Returns the hash code for this instance.

override
ToString() : string

Returns a string that consists of the argument name, the equal sign, and a string representation of the argument value.

Public Operators