/** * <summary> * Stops recording display commands and saves the sequence into the specified * file on the display internal memory. * <para> * The sequence can be later replayed * using <c>playSequence()</c>. * </para> * </summary> * <param name="sequenceName"> * the name of the newly created sequence * </param> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public virtual int saveSequence(string sequenceName) { if (_func == null) { throw new YoctoApiProxyException("No Display connected"); } return(_func.saveSequence(sequenceName)); }