Skip to content

InstallationResult.Succeeded

property · InstallationResult · cAlgo.API Since 5.1

DesktopCLICloud

Returns True if algo installation succeeded otherwise false.

Definition

public bool Succeeded {get;}
installationResult.Succeeded: bool

Returns bool

Examples

var result = AlgoRegistry.Install(@"C:\Algos\Sample cBot.algo");
if (result.Succeeded)
    Print("Algo installed");
else
    Print("Installation failed: {0}", result.Error);
result = api.AlgoRegistry.Install(r"C:\Algos\Sample cBot.algo")
if result.Succeeded:
    api.Print("Algo installed")
else:
    api.Print(f"Installation failed: {result.Error}")