IVssDifferentialSoftwareSnapshotManagementGetVolumeProtectionLevel Method |
Namespace: Alphaleonis.Win32.Vss
The name of the volume. This parameter is required and cannot be .
The name of the volume must be in one of the following formats:
Exception | Condition |
---|---|
UnauthorizedAccessException | Caller does not have sufficient backup privileges or is not an administrator. |
OutOfMemoryException | The caller is out of memory or other system resources. |
ArgumentException | One of the parameter values is not valid. |
ArgumentNullException | One of the arguments was |
NotImplementedException | The provider for the volume does not support shadow copy protection. |
VssProviderVetoException | Expected provider error. The provider logged the error in the event log. |
VssObjectNotFoundException | The specified volume was not found. |
The GetVolumeProtectionLevel(String) method gets information about the volume's current protection level. If the volume is in a faulted state, the ProtectionFault member of the VssVolumeProtectionInfo structure contains the current protection fault, and the FailureStatus member contains the reason why the volume is in a faulted state. If the volume is not in a faulted state, the ProtectionFault and FailureStatus members will be zero.