ParameterAttribute


Summary

Initializes a new ParameterAttribute instance and sets the name.

Remarks

Represents an input parameter to the program. To make it effective type in enclosed in square brackets, e.g. [Parameter], before the property declaration. Parameters are listed in the instance button of the robot/indicator.

Syntax

public ParameterAttribute ParameterAttribute(string name)
public ParameterAttribute ParameterAttribute()

Parameters

NameDescription

Example 1

//...
// parameter attribute
[Parameter("Parameter Name")]
public int ParameterName { get; set; }
//...

Example 2

//...
// parameter attribute
[Parameter("ParameterName", DefaultValue = 14, MinValue = 2, MaxValue = 30)] 
public int ParameterName { get; set; } //  property declaration
//...