Skip to content

InstallationResult.Error

property · InstallationResult · cAlgo.API Since 5.1

DesktopCLICloud

Returns algo installation error if algo installation failed otherwise null.

Definition

public InstallationError? Error {get;}
installationResult.Error: InstallationError | None

Returns InstallationError?

Examples

var result = AlgoRegistry.Install(@"C:\Algos\Sample cBot.algo");
if (result.Error == InstallationError.FileNotFound)
    Print("The algo file was not found");
result = api.AlgoRegistry.Install(r"C:\Algos\Sample cBot.algo")
if result.Error == InstallationError.FileNotFound:
    api.Print("The algo file was not found")