Skip to content

RobotAttribute.Name

property · RobotAttribute · cAlgo.API

DesktopCLICloud

The name of a robot. Sets from constructor.

Definition

public string Name {get;}
robotAttribute.Name: str

Returns string

Examples

public partial class NameSample : Robot
{
    protected override void OnStart()
    {
        var attribute = (RobotAttribute)Attribute.GetCustomAttribute(GetType(), typeof(RobotAttribute));
        Print("cBot name: {0}", attribute.Name ?? GetType().Name);
    }
}
def on_start(self):
    api.Print("cBot started")
{
  "AccessRights": "None"
}