Exemple #1
0
 /**
  * <summary>
  *   Uploads an arbitrary file (for instance a GIF file) to the display, to the
  *   specified full path name.
  * <para>
  *   If a file already exists with the same path name,
  *   its content is overwritten.
  * </para>
  * </summary>
  * <param name="pathname">
  *   path and name of the new file to create
  * </param>
  * <param name="content">
  *   binary buffer with the content to set
  * </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 upload(string pathname, byte[] content)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Display connected");
     }
     return(_func.upload(pathname, content));
 }