[]
Initializes an instance of a parameter.
This overload forwards null as the default value to
Parameter(FunctionValueType, object).
public Parameter(FunctionValueType valueType)
Public Sub New(valueType As FunctionValueType)
| Type | Name | Description |
|---|---|---|
| FunctionValueType | valueType | The value type of the parameter. |
Initializes an instance of a parameter.
public Parameter(FunctionValueType valueType, bool acceptReference)
Public Sub New(valueType As FunctionValueType, acceptReference As Boolean)
| Type | Name | Description |
|---|---|---|
| FunctionValueType | valueType | The value type of the parameter. |
| bool | acceptReference | If this parameter can accept reference. |
Initializes an instance of a parameter.
This overload creates a parameter without a name or description and configures whether it accepts references and custom objects.
public Parameter(FunctionValueType valueType, bool acceptReference, bool acceptCustomObjects)
Public Sub New(valueType As FunctionValueType, acceptReference As Boolean, acceptCustomObjects As Boolean)
| Type | Name | Description |
|---|---|---|
| FunctionValueType | valueType | The value type of the parameter. |
| bool | acceptReference | If this parameter can accept reference. |
| bool | acceptCustomObjects | Accepts custom objects if value type is Object. |
Initializes an instance of a parameter.
This overload creates a parameter without a name or description and forwards
null for both values.
public Parameter(FunctionValueType valueType, object defaultValue)
Public Sub New(valueType As FunctionValueType, defaultValue As Object)
| Type | Name | Description |
|---|---|---|
| FunctionValueType | valueType | The value type of the parameter. |
| object | defaultValue | The default value of the parameter. This value can be |
Initializes an instance of a parameter.
public Parameter(FunctionValueType valueType, object defaultValue, bool acceptReference)
Public Sub New(valueType As FunctionValueType, defaultValue As Object, acceptReference As Boolean)
| Type | Name | Description |
|---|---|---|
| FunctionValueType | valueType | The value type of the parameter. |
| object | defaultValue | The default value of the parameter. |
| bool | acceptReference | If this parameter can accept reference. |
Initializes an instance of a parameter.
Creates a parameter definition with the specified name, description, value type, and default value.
This overload forwards false for the acceptReference argument.
public Parameter(string name, string description, FunctionValueType valueType, object defaultValue)
Public Sub New(name As String, description As String, valueType As FunctionValueType, defaultValue As Object)
| Type | Name | Description |
|---|---|---|
| string | name | The name of the parameter. This value can be |
| string | description | The description of the parameter. This value can be |
| FunctionValueType | valueType | The value type of the parameter. |
| object | defaultValue | The default value of the parameter. This value can be |
Initializes an instance of a parameter.
public Parameter(string name, string description, FunctionValueType valueType, object defaultValue, bool acceptReference)
Public Sub New(name As String, description As String, valueType As FunctionValueType, defaultValue As Object, acceptReference As Boolean)
| Type | Name | Description |
|---|---|---|
| string | name | The name of the function. |
| string | description | The description of the parameter. |
| FunctionValueType | valueType | The value type of the parameter. |
| object | defaultValue | The default value of the parameter. |
| bool | acceptReference | If this parameter can accept reference. |
Initializes an instance of a parameter.
public Parameter(string name, string description, FunctionValueType valueType, object defaultValue, bool acceptReference, bool acceptCustomObjects)
Public Sub New(name As String, description As String, valueType As FunctionValueType, defaultValue As Object, acceptReference As Boolean, acceptCustomObjects As Boolean)
| Type | Name | Description |
|---|---|---|
| string | name | The name of the function. |
| string | description | The description of the parameter. |
| FunctionValueType | valueType | The value type of the parameter. |
| object | defaultValue | The default value of the parameter. |
| bool | acceptReference | If this parameter can accept reference. |
| bool | acceptCustomObjects | Accepts custom objects if value type is Object. |