note
VeloxDB is still in beta and APIs are subject to change. We are in the process of completing the documentation, so some sections may be incomplete or empty at this time.
Class ForwardAttribute
The ForwardAttribute class is used to forward an attribute from a VeloxDB API to an ASP.NET API Controller.
Inheritance
Namespace: VeloxDB.AspNet
Assembly: vlxasp.dll
Syntax
public class ForwardAttribute : Attribute
Constructors
ForwardAttribute(Type)
Initializes a new instance of the ForwardAttribute class with the specified attribute type.
Declaration
public ForwardAttribute(Type attribute)
Parameters
Type | Name | Description |
---|---|---|
System.Type | attribute | The type of the attribute to forward. |
ForwardAttribute(Type, Object[])
Initializes a new instance of the ForwardAttribute class with the specified attribute type and arguments.
Declaration
public ForwardAttribute(Type attribute, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Type | attribute | The type of the attribute to forward. |
System.Object[] | arguments | The arguments for the attribute. |
Properties
Arguments
Gets the arguments for the attribute.
Declaration
public object[] Arguments { get; }
Property Value
Type | Description |
---|---|
System.Object[] |
Attribute
Gets the attribute type that is being forwarded.
Declaration
public Attribute Attribute { get; }
Property Value
Type | Description |
---|---|
System.Attribute |
NamedArguments
The NamedArguments property is used to pass named arguments to the attribute constructor. The array should be composed of key-value pairs, with the keys being strings and placed in odd positions, and the corresponding values in even positions. It is important to note that the length of the array must be even, with an equal number of keys and values. The keys must be the names of properties or fields on the attribute type, and the values should be of the appropriate type for those properties or fields.
Declaration
public object[] NamedArguments { get; set; }
Property Value
Type | Description |
---|---|
System.Object[] |