Edit

Share via


CustomAttributeTypedArgument Constructors

Definition

Initializes a new instance of the CustomAttributeTypedArgument class.

Overloads

CustomAttributeTypedArgument(Object)

Initializes a new instance of the CustomAttributeTypedArgument class with the specified value.

CustomAttributeTypedArgument(Type, Object)

Initializes a new instance of the CustomAttributeTypedArgument class with the specified type and value.

CustomAttributeTypedArgument(Object)

Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs

Initializes a new instance of the CustomAttributeTypedArgument class with the specified value.

public:
 CustomAttributeTypedArgument(System::Object ^ value);
public CustomAttributeTypedArgument (object value);
new System.Reflection.CustomAttributeTypedArgument : obj -> System.Reflection.CustomAttributeTypedArgument
Public Sub New (value As Object)

Parameters

value
Object

The value of the custom attribute argument.

Exceptions

value is null.

Remarks

The value parameter cannot be null for this constructor, because the argument type is inferred from the type of value. To specify a null value, use the CustomAttributeTypedArgument(Type, Object) constructor.

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

Applies to

CustomAttributeTypedArgument(Type, Object)

Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs

Initializes a new instance of the CustomAttributeTypedArgument class with the specified type and value.

public:
 CustomAttributeTypedArgument(Type ^ argumentType, System::Object ^ value);
public CustomAttributeTypedArgument (Type argumentType, object value);
public CustomAttributeTypedArgument (Type argumentType, object? value);
new System.Reflection.CustomAttributeTypedArgument : Type * obj -> System.Reflection.CustomAttributeTypedArgument
Public Sub New (argumentType As Type, value As Object)

Parameters

argumentType
Type

The type of the custom attribute argument.

value
Object

The value of the custom attribute argument.

Exceptions

argumentType is null.

Remarks

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

Applies to