IVssBackupComponentsAddToSnapshotSet Method (String, Guid) |
Namespace: Alphaleonis.Win32.Vss
Exception | Condition |
---|---|
UnauthorizedAccessException | Caller does not have sufficient backup privileges or is not an administrator. |
ArgumentException | One of the parameters is not valid. |
OutOfMemoryException | Out of memory or other system resources. |
SystemException | Unexpected VSS system error. The error code is logged in the event log. |
VssBadStateException | The backup components object is not initialized, this method has been called during a restore operation, or this method has not been called within the correct sequence. |
VssMaximumNumberOfVolumesReachedException | The maximum number of volumes has been added to the shadow copy set. The specified volume was not added to the shadow copy set. |
VssMaximumNumberOfSnapshotsReachedException | The volume has been added to the maximum number of shadow copy sets. The specified volume was not added to the shadow copy set. |
VssObjectNotFoundException | volumeName does not correspond to an existing volume. |
VssProviderNotRegisteredException | providerId does not correspond to a registered provider. |
VssProviderVetoException | Expected provider error. The provider logged the error in the event log. |
VssVolumeNotSupportedException | The value of the providerId parameter is Empty and no VSS provider indicates that it supports the specified volume. |
VssVolumeNotSupportedByProviderException | The volume is not supported by the specified provider. |
VssUnexpectedProviderErrorException | The provider returned an unexpected error code. |
The maximum number of shadow copies in a single shadow copy set is 64.
If providerId is Empty, the default provider is selected according to the following algorithm: If any hardware-based provider supports the given volume, it is selected.If there is no hardware-based provider available, if any software-based provider supports the given volume, it is selected.If there is no hardware-based provider or software-based provider available, the system provider is selected. (There is only one preinstalled system provider, which must support all nonremovable local volumes.)