Пример #1
0
		/// <summary>
		/// Set the attributes for a file on the connected device
		/// </summary>
		/// <param name="FileName"></param>
		/// <param name="Attributes"></param>
		public void SetDeviceFileAttributes(string FileName, RAPIFileAttributes Attributes)
		{
			CheckConnection();

			if(! Convert.ToBoolean(CeSetFileAttributes(FileName, (uint)Attributes)))
			{
				throw new RAPIException("Cannot set device file attributes");
			}
		}
Пример #2
0
 /// <summary>
 /// Set the attributes for a file on the connected device
 /// </summary>
 /// <param name="FileName">Name of file to set attributes to</param>
 /// <param name="Attributes">Required attributes</param>
 public bool SetDeviceFileAttributes(string FileName, RAPIFileAttributes Attributes)
 {
     CheckConnection();
     return CeSetFileAttributes(FileName, (uint)Attributes);
     //throw new RAPIException("Cannot set device file attributes");
 }