device.ToString

Creates status string of the device in the format “Authority: <authority> Username: <username> Error: <error_code>”;

string device.ToString()

Params

None

Output

type description
string String formatted status of device “Authority: <authority> Username: <username> Error: <error_code>”

Examples

Device device = new Device("10.10.10.10", "80", false, "username", "password");
Console.WriteLine(device.ToString()); // logs "Authority: 10.10.10.10:80 Username: username Error: 0"