Click or drag to resize
IVssImplementationIsVolumeSnapshotted Method
The IsVolumeSnapshotted function determines whether any shadow copies exist for the specified volume.

Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common (in AlphaVSS.Common.dll) Version: (
bool IsVolumeSnapshotted(
	string volumeName


Type: SystemString
Name of the volume. The name of the volume to be checked must be in one of the following formats:
  • The path of a volume mount point with a backslash (\)
  • A drive letter with backslash (\), for example, D:\
  • A unique volume name of the form \\?\Volume{GUID}\ (where GUID is the unique global identifier of the volume) with a backslash (\)

Return Value

Type: Boolean
true if the volume has a shadow copy, and false if the volume does not have a shadow copy.
ArgumentExceptionOne of the parameters is not valid.
UnauthorizedAccessExceptionThe caller does not have sufficient backup privileges or is not an administrator.
OutOfMemoryExceptionOut of memory or other system resources.
SystemExceptionUnexpected VSS system error. The error code is logged in the event log.
VssProviderVetoExceptionExpected provider error. The provider logged the error in the event log.
VssObjectNotFoundExceptionThe specified volume was not found.
VssUnexpectedProviderErrorExceptionUnexpected provider error. The error code is logged in the event log file.
Use GetSnapshotCompatibility(String) to determine whether certain volume control or file I/O operations are disabled for the given volume if a shadow copy of it exists.
See Also