public void SomeOperation() { if (query.AttributeExists("DeviceName")) { command.SetAttribute("DeviceName", "Rover, Curiousity"); } }