Пример #1
0
 private static extern Int32 _SetFixedVolumeManualOperations(string securityToken, string deviceName, FixedVolumeManualOperations newOperations);
Пример #2
0
 /// <summary>
 /// Defines the valid manual user operations for a given fixed volume
 /// </summary>
 /// <param name="securityToken">Security token</param>
 /// <param name="deviceName">Device name of the volume</param>
 /// <param name="newOperations">Set of operations</param>
 /// <exception cref="Exception">if call was not successfull.</exception>
 public static void SetFixedVolumeManualOperations(string securityToken, string deviceName, FixedVolumeManualOperations newOperations)
 {
     if (_SetFixedVolumeManualOperations(securityToken, deviceName, newOperations) != 0)
     {
         throw new Exception();
     }
 }
Пример #3
0
 private static extern Int32 _SetManualOperations(string securityToken, FixedVolumeManualOperations newManualOperations);
Пример #4
0
 /// <summary>
 /// Defines which manual operations are allowed for a user
 /// </summary>
 /// <param name="securityToken">Security token</param>
 /// <param name="newManualOperations">Set of maunal operations</param>
 /// <exception cref="Exception">if call was not successfull.</exception>
 public static void SetManualOperations(string securityToken, FixedVolumeManualOperations newManualOperations)
 {
     if (_SetManualOperations(securityToken, newManualOperations) != 0)
     {
         throw new Exception();
     }
 }