public void StartMaintenance(MaintenanceOperation operation) { this.InitializeComInterfaces(); if (this.maintenance == null) { throw new NotSupportedException("The drive does not support maintenance operations."); } try { this.maintenance.StartMaintenance(operation); } catch (COMException exception) { throw new VdsException("The call to IVdsMaintenance::StartMaintenance failed.", exception); } }
public void PulseMaintenance(MaintenanceOperation operation, uint count) { this.InitializeComInterfaces(); if (this.maintenance == null) { throw new NotSupportedException("The lun does not support maintenance operations."); } try { this.maintenance.PulseMaintenance(operation, count); } catch (COMException exception) { throw new VdsException("The call to IVdsMaintenance::PulseMaintenance failed.", exception); } }