CustomAttributeArgument Class
Represents an argument passed to a custom attribute.
public class CustomAttributeArgument : CodeObject, ICommentable- Inheritance
CodeObjectCustomAttributeArgument- Implements
Constructors
| Name | Description |
|---|---|
| CustomAttributeArgument() | |
| CustomAttributeArgument(Expression?) | Initializes a new instance of the CustomAttributeArgument class with the specified value. |
| CustomAttributeArgument(string?, Expression?) | Initializes a new instance of the CustomAttributeArgument class with the specified property name and value. |
CustomAttributeArgument overloads
CustomAttributeArgument()
CustomAttributeArgument.cspublic CustomAttributeArgument()No documentation is available.
CustomAttributeArgument(Expression?)
CustomAttributeArgument.csInitializes a new instance of the CustomAttributeArgument class with the specified value.
public CustomAttributeArgument(Expression? value)Parameters
valueExpression?- The argument value.
CustomAttributeArgument(string?, Expression?)
CustomAttributeArgument.csInitializes a new instance of the CustomAttributeArgument class with the specified property name and value.
public CustomAttributeArgument(string? propertyName, Expression? value)Parameters
propertyNamestring?- The property name for named arguments, or null for positional arguments.
valueExpression?- The argument value.
Properties
| Name | Description |
|---|---|
| CommentsAfter | |
| CommentsBefore | |
| PropertyName | |
| Value |